IndexerNow

How to add tracking code to Shopify

Shopify supports both the header snippet and a server-side install, so you can see AI crawlers as well as the people they send you.

Where the field is

theme.liquid, or Online Store → Themes → Edit code, for JSON-LD scoped to templates.

Step by step

  1. Sign in to Shopify and open the header-code setting shown above.
  2. Copy your tracking snippet from IndexerNow → AI Search → Install (each tracked site has its own).
  3. Paste the snippet into the header field and save.
  4. Publish or republish the site so the change goes live.
  5. Visit any page of your own site once, then check IndexerNow — the pageview should appear within a minute.
Get my snippet

What each install level can see

CITED

Nothing to install

Available on Shopify

Whether ChatGPT, Claude and Perplexity name your business when asked for one like yours, and whether your pages are retrievable at all.

Enter your domain. No code, no account, no plugin.

Can't see: Traffic. It tells you whether AI would recommend you, not whether anyone arrived because it did.

CLICKED

One snippet in your header

Available on Shopify

Real humans landing on your site from ChatGPT, Perplexity, Copilot and other AI apps — which page they hit and which app sent them.

Paste a single <script> tag into your site's header/custom-code field and save. No developer, no deploy.

Can't see: AI crawlers. Bots fetch your HTML without running JavaScript, so no browser snippet can see them. That needs Tier 3.

FOUND

Server or edge install

Available on Shopify

Everything in Tier 2, plus every AI bot that crawls you — GPTBot, ClaudeBot, PerplexityBot, Google-Extended — and exactly which pages they fetch.

Add a request hook (edge middleware, CDN worker, or server middleware). Paste our prompt into an AI coding assistant and it writes the integration for your stack.

Questions

Where do I put custom code in Shopify?

theme.liquid, or Online Store → Themes → Edit code, for JSON-LD scoped to templates.

Will this slow my site down?

No. The snippet is a few hundred bytes, sets no cookies, blocks nothing, and fires once per pageview using sendBeacon, which the browser sends in the background after the page has already rendered.

Does it track AI crawlers like GPTBot?

No — and no header snippet can. AI crawlers fetch your HTML without ever running JavaScript, so a browser snippet is invisible to them. Seeing bot-level crawls needs a server or edge install, which hosted builders don't allow. The snippet shows you the humans those crawlers send you.

Do I need an account?

For the snippet, yes — each tracked site gets its own ingestion token. The citation check that tells you whether AI search names your business needs no account at all.

More about Shopify