← All IntegrationsIntegration
Analytics for Shopify
Shopify stores rely on Google Analytics and Shopify's built-in reports — neither detects AI-referred shopping traffic. BetterMeter adds cookie-free analytics to your store via a single script tag in theme.liquid, showing you exactly which AI platforms are sending shoppers to your products.
Install via theme.liquid
In your Shopify admin, go to Online Store → Themes → Edit Code → theme.liquid. Paste the BetterMeter script tag just before the closing</head> tag.
theme.liquid — add before closing head tag
<!-- BetterMeter Analytics — cookie-free, privacy-first -->
<script
defer
data-site="{{ shop.permanent_domain }}"
src="https://bettermeter.com/api/script"
></script>What you see that Shopify Analytics misses
- 01 AI shopping traffic — Shoppers who asked ChatGPT “best running shoes under $150” and clicked through to your store. Shopify shows this as “direct.”
- 02 Bot and crawler activity — See which bots crawl your product catalog, how often, and which pages they target. Detect scraping before it affects pricing.
- 03 No cookie consent required — BetterMeter uses no cookies and no persistent identifiers. GDPR and CCPA compliant out of the box — no consent banner needed.
- 04 Real-time product page views — See which products are trending right now, not in yesterday's Shopify report.
AI-referred e-commerce is growing fast
Consumers increasingly ask AI assistants for product recommendations. When ChatGPT or Perplexity recommends your product and a shopper clicks through, standard analytics tools classify that visit as “direct” or “unknown.” BetterMeter attributes it correctly, so you know which AI platforms drive revenue.
No Cookies
Skip consent banners
AI Attribution
ChatGPT / Perplexity
Bot Detection
Price scrapers caught
Real-Time
Live product views
30-Second Setup
One script tag
Lightweight
<1KB, no page speed hit