Clerion
  • Explore ClerionFeaturesUse casesMCP server
    Feature pagesAI trafficRevenue by sourceCustom eventsError intelligenceBriefing and signalsSecurity
  • Docs
  • Pricing
  • Privacy-first toolsPlausibleFathomMatomo
    Large platformsGoogle AnalyticsMixpanelCloudflare Web AnalyticsPostHogAmplitude
  • LearnBlogHelp centreChangelog
    CompanyAbout usBrandContact
Sign inStart free trial ›
  • Explore ClerionFeaturesUse casesMCP server
    Feature pagesAI trafficRevenue by sourceCustom eventsError intelligenceBriefing and signalsSecurity
  • Docs
  • Pricing
  • Privacy-first toolsPlausibleFathomMatomo
    Large platformsGoogle AnalyticsMixpanelCloudflare Web AnalyticsPostHogAmplitude
  • LearnBlogHelp centreChangelog
    CompanyAbout usBrandContact
  • Contact sales
Sign inStart 14-day trial

On this page

  • What is Clerion?
  • Why add analytics to Shopify if the admin already has reports?
  • What do you need before you start?
  • How do you add the Clerion script tag in Shopify?
  • Which Shopify pages will Clerion count?
  • Can Clerion show revenue by source on Shopify?
  • How do you check it is working?
  • What happens to the snippet when you update your theme?
  • Should you load it through Google Tag Manager instead?
  • What will you see once it is running?
  • Frequently asked questions
  • Sources
  1. Blog
  2. How to add analytics to Shopify with Clerion
  1. Blog
  2. How to add analytics to Shopify with Clerion

How to add analytics to Shopify with Clerion

Clerion Research Team2 December 20269 min read

To add analytics to Shopify with Clerion, go to Online Store, Themes, Edit code, open layout/theme.liquid and paste the Clerion script tag just before the closing head tag. It counts every storefront page your theme controls; checkout pages sit outside the theme.

Analytics on Shopify banner on a blue wash

To add analytics to a Shopify store with Clerion, open Online Store, then Themes, choose Edit code from the theme's menu, open layout/theme.liquid and paste the Clerion script tag just before the closing head tag. Save, visit your storefront in another tab, and your own visit should show up in Clerion almost at once.

Paste the Clerion script tag into Shopify and see your first visit

14-day trial, no card to sign up. A card is only asked if you start a paid plan trial from the upgrade modal.

What is Clerion?

Clerion is website intelligence for AI founders. You add one script tag, and each morning it reads your site and tells you the one thing worth doing, in a sentence, with your own numbers as the evidence. It counts AI-assistant traffic as its own channel, ties signups and revenue to their source, and connects to Claude so you can ask about your traffic from the chat.

It sets no cookies, so it needs no consent banner of its own. Data is held in the EU, never sold, and the model only sees aggregates.

Why add analytics to Shopify if the admin already has reports?

Shopify's admin has its own reports on sales and visits, and for many stores that is enough. The question an AI-era founder tends to ask is different: is ChatGPT, Perplexity or Claude sending people to my product pages, and what do they look at once they land?

Clerion counts referrals from ChatGPT, Perplexity, Claude, Gemini and Copilot as their own channel. Alongside that it records pageviews, referrers, campaigns, clicks, scroll depth, forms, speed and JavaScript errors without an event plan. Shopify's reports and Clerion can run side by side; nothing about one stops the other.

What do you need before you start?

  • A Clerion account with your store added. Signup is one email, and Clerion asks one question: which site to watch.
  • The script tag copied from Clerion. It carries your real key and site id.
  • Access to the Shopify admin with rights to edit the theme.
  • A theme you own. Shopify's help centre says you can only edit a theme's code after you have bought it, so a trial of a paid theme needs to be purchased first.

When you add your store, Clerion recognises Shopify from the page and shows the Shopify steps next to the snippet. If someone else looks after the theme, send them the snippet from the install screen; they get the line and the steps, and their reply comes to you.

How do you add the Clerion script tag in Shopify?

These steps follow Clerion's install docs and Shopify's own help article on editing theme code.

  1. In Clerion, copy the snippet from the install screen. It looks like this, with your key and site id in place of the placeholders:
<script
  src="https://api.getclerion.com/sdk/clerion-analytics.js"
  data-api-key="YOUR_API_KEY"
  data-website-id="YOUR_WEBSITE_ID"
></script>
  1. Optional but sensible: in Shopify, go to Online Store, then Themes, open the live theme's ... menu and choose Duplicate. Shopify recommends a backup copy before you change code.
  2. On the theme you want to edit, open the ... menu and choose Edit code.
  3. In the Layout folder, open theme.liquid.
  4. Find the closing </head> tag and paste the snippet on the line just before it.
  5. Click Save. If you edited a duplicate, publish that theme when you are ready.

The snippet loads deferred, so it does not slow the page. Shopify's developer docs describe theme.liquid as the default layout that wraps the store's non-checkout pages, so one paste covers the home page, collections, product pages, the cart and your content pages.

Which Shopify pages will Clerion count?

Clerion's docs put it plainly: the tag loads on every storefront page your theme controls. That is most of a store, with two exceptions worth knowing about.

Page Counted with the theme.liquid install? Why
Home, collections, products, cart, pages, blog Yes They render through theme.liquid
A template set to a different layout Only if that layout has the tag too Shopify lets each template choose its layout
Checkout, Thank you and Order status No Checkout pages are not part of the theme layout

If a page seems to be missing from your numbers, check which layout its template uses, and add the snippet to that layout as well, once.

Can Clerion show revenue by source on Shopify?

Not out of the box today, and it is better to know that before you start. Clerion's revenue by source card fills in when a page with the snippet sends a purchase event with a value. Its docs say the payment has to be sent from a page with the snippet, and that Clerion does not connect to Stripe or another provider.

On Shopify, the purchase is confirmed on the Thank you page, which is a checkout page outside your theme. Shopify's developer docs say checkout.liquid and additional scripts no longer run on the Thank you and Order status pages, and that script tags stopped there for all stores on August 26, 2026. So the Clerion tag in theme.liquid does not reach the moment of payment.

What you do get is the part before checkout: which sources, AI assistants included, bring people to product pages and the cart, and how those visitors behave. If your product takes payment on your own site rather than Shopify checkout, the revenue by source docs show how to send the event. We covered the idea for AI traffic in how do I track revenue from ChatGPT traffic.

How do you check it is working?

Open your storefront in another tab. The install screen in Clerion updates on its own, Clerion emails you when the first visit lands, and the live pulse on Overview refreshes every 30 seconds.

If nothing arrives, use Pasted it? Check my site on the install screen. It fetches your live page and says whether the snippet is there, missing, or carrying an old key. The usual causes on Shopify are short:

  • You saved the snippet in a duplicate theme that is not published yet.
  • Your browser sends Global Privacy Control or Do Not Track, which Clerion honours. Test from another browser or a phone.
  • The store is still behind its password page, which some themes render with a separate layout.
  • The snippet is in theme.liquid twice, or also added by an app, which doubles counts. Keep one copy.

For the full list, see Analytics not tracking visits? A Clerion checklist.

What happens to the snippet when you update your theme?

Shopify warns that when theme code changes are incompatible with a theme update, the code changes are removed in the updated copy. After any theme update or theme switch, open theme.liquid and confirm the snippet is still there.

Clerion also watches for this. When a page that drew steady traffic for two weeks records nothing for three days, a quiet line appears at the top of the dashboard saying tracking stopped on that page. A store with little traffic gets "not enough traffic to tell" instead, which is not a pass.

Should you load it through Google Tag Manager instead?

No. Clerion's install docs advise against loading Clerion through Tag Manager, because ad blockers block the tag manager itself on many devices. Paste the line directly into theme.liquid. The reasoning is in Should you install Clerion with Google Tag Manager?

What will you see once it is running?

Traffic, pages, referrers and campaigns arrive from the first visitor. AI assistants show up as their own channel, which matters because some of that traffic lands in Direct in other tools. See how to track ChatGPT traffic to your website, why ChatGPT traffic shows as Direct in Google Analytics and how to track Perplexity traffic.

The daily briefing gets sharp after about a week of data, rather than guessing from a day of noise. Every claim in it comes from your own data, not the model.

If you would rather ask than read, connect the Claude connector. In claude.ai you add Clerion as a connector, approve it in Clerion, and ask questions like which AI assistant sent visitors to your product pages last week. The model reads counts and averages, never visitor rows. Setup is on the MCP page.

Running a different platform? The same one-line install is written up for WordPress, Webflow, Framer and Next.js and Vercel, and the short version is paste this one line.

Add Clerion to your Shopify store, then connect Claude

14-day trial, no card to sign up. A card is only asked if you start a paid plan trial from the upgrade modal.

Frequently asked questions

Where do I paste an analytics script in Shopify?

In the Shopify admin, go to Online Store, then Themes, open the theme's menu and choose Edit code. Open layout/theme.liquid and paste the snippet just before the closing head tag, then save.

Does Clerion track Shopify checkout pages?

No. The snippet in theme.liquid loads on storefront pages your theme controls. Checkout, Thank you and Order status pages are outside the theme layout, and Shopify no longer runs additional scripts or script tags on the Thank you and Order status pages.

Can I see revenue by source for a Shopify store in Clerion?

Not out of the box today. Clerion's revenue card needs a purchase event sent from a page with the snippet, and Shopify confirms payment on a checkout page outside the theme. You still see which sources, AI assistants included, bring visitors to product pages and the cart.

Will a Shopify theme update remove the Clerion snippet?

It can. Shopify warns that code changes incompatible with a theme update are removed in the updated copy. After an update or theme switch, check theme.liquid, and watch for Clerion's note that tracking stopped on a page.

Do I need a cookie banner after adding Clerion to Shopify?

Not for Clerion. It sets no cookies and honours Global Privacy Control and Do Not Track. Shopify itself and other apps on your store may still need one.

Sources

  • Editing theme code (Shopify Help Center)
  • Duplicating themes (Shopify Help Center)
  • Layouts (Shopify developer docs)
  • Order status script tags (Shopify developer docs)
  • Install on your platform (Clerion docs)
  • Quickstart (Clerion docs)
  • Script tag (Clerion docs)
  • Check your installation (Clerion docs)
  • Revenue by source (Clerion docs)
  • Web analytics MCP (Clerion)
clerion-blog-writeradd analytics to shopifyshopifyinstallscript tag
Clerion

Website intelligence for AI founders.See what AI sends you, and what to fix.

Start free trial ›

14 days free, no card.

Keep reading

All writing →
  • How to track signups across domains, from site to appArticle
  • How to track Copilot traffic in your analyticsArticle
  • How to add analytics to Wix with ClerionArticle
  • Clerion vs Google AnalyticsPage
  • Do you need a cookie banner for analytics?Guide
  • Best AI analytics toolsGuide
Next step

Bring your Google Analytics history and read the difference.

Written from real site data by the team building Clerion.
Import your GA history ›
Clerion

Website intelligence for AI founders.

Product

  • Features
  • Use cases
  • Docs
  • Quickstart
  • MCP server
  • Pricing
  • Sign in

Compare

  • vs Google Analytics
  • vs Plausible
  • vs Fathom
  • vs Matomo
  • vs Mixpanel
  • vs Cloudflare
  • vs PostHog
  • vs Amplitude

Resources

  • Blog
  • Help centre
  • Is it agentic?
  • What is SI?
  • What is Clerion?
  • Changelog
  • Sitemap

Company

  • About us
  • CareersHiring
  • Brand
  • Contact
  • Security
  • Privacy policy
  • Terms

Compliance

  • GDPR
  • Schrems II
  • ePrivacy
  • PECR
  • COPPA
  • CCPA
  • Our data journey
Product
  • Features
  • Use cases
  • Docs
  • Quickstart
  • MCP server
  • Pricing
  • Sign in
Compare
  • vs Google Analytics
  • vs Plausible
  • vs Fathom
  • vs Matomo
  • vs Mixpanel
  • vs Cloudflare
  • vs PostHog
  • vs Amplitude
Resources
  • Blog
  • Help centre
  • Is it agentic?
  • What is SI?
  • What is Clerion?
  • Changelog
  • Sitemap
Company
  • About us
  • CareersHiring
  • Brand
  • Contact
  • Security
  • Privacy policy
  • Terms
Compliance
  • GDPR
  • Schrems II
  • ePrivacy
  • PECR
  • COPPA
  • CCPA
  • Our data journey

Clerion (“Clerion”), at getclerion.com and clerion.si, is website intelligence for AI founders: web analytics, AI-assistant traffic, conversions and revenue by source, SEO and AI-readiness, speed and errors from one script tag. It finds the patterns in the data, ranks what changed and tells you the fix. Designed with taste: one typeface, no accent colour, and nothing that moves unless it tells you something. AI is now also called SI, super intelligence; the channel is the same. It sets no cookies, stores no personal data, needs no consent banner, and holds data in the EU. Every briefing is written from your own numbers, and every figure in it comes from your data rather than from the model. Clerion is a software product and does not provide marketing, legal or advisory services. We have no ad budget: if Clerion helps you, telling a friend does more for us than any campaign could.

© 2026 Clerion. Independent and self-funded.

Served from the Netherlands.