Add Antlytics to Shopify
Prerequisites
- An Antlytics account (sign up free)
- Your tracking ID from Settings → Tracking Snippet in your Antlytics dashboard
Install the snippet
Go to Online Store → Themes, then click Edit code on your active theme. Open layout/theme.liquid and paste the snippet just before the closing </head> tag.
Alternatively, go to Online Store → Preferences → Additional scripts and paste the snippet there — note that the Preferences field is loaded on every storefront page, making it a quick option when you prefer not to edit theme code.
Caching note: If your store uses a third-party performance app, clear the cache after installing so the snippet takes effect immediately.
<script
defer
src="https://www.antlytics.com/tracker.js"
data-tracking-id="YOUR-SITE-ID"
data-api-host="https://www.antlytics.com"
></script>
Note: Replace
YOUR-SITE-IDwith the tracking ID from your Antlytics dashboard.
Verify installation
- Visit your site in a browser.
- Open your Antlytics dashboard → Overview.
- Your visit should appear within a few seconds.
If data does not appear after a few minutes, check the troubleshooting guide.
Optional: First-party proxy
To avoid ad blockers, set up a first-party proxy on your own domain.
Need help?
Email support@antlytics.com with your site ID and page URL.