Shopify
Add Humblytics Analytics to Shopify
A dedicated Shopify app is coming soon and will make this a one-click install. Until then, installation is a one-line manual snippet in your theme code. It takes about 2 minutes.
1 · Sign up (or log in)
Visit humblytics.com → Start Free Trial. Finish signup, or log in to your existing workspace.
2 · Add your website in Humblytics
In the sidebar, click Add Website.
Domain: enter
your-store.com(omithttps://andwww). If your store lives onyour-store.myshopify.com, use that domain instead.Site Name: internal label (e.g.
Store-Prod)
Copy the snippet from Install Tracking Code:
<!-- Start Humblytics Tracking Code -->
<script async src="https://app.humblytics.com/hmbl.min.js?id=YOUR_ID_HERE"></script>
<!-- End Humblytics Tracking Code -->Keep this tab open. We'll return and click Verify Website once the tag is live.
3 · Add the script to your Shopify theme
In your Shopify admin, go to Online Store → Themes
On your live theme, click the three-dot menu (⋯) → Edit code
In the file list, open Layout → theme.liquid
Find the closing
</head>tag (usually near the top of the file)Paste your Humblytics snippet on the line just before
</head>Click Save
Note: Replace YOUR_ID_HERE with your actual project ID from Humblytics.
The script lives in your published theme. If you switch or replace your theme later, you'll need to re-add the snippet to the new theme's theme.liquid.
4 · Verify installation
Return to Humblytics and click Verify Website
Open your live storefront in a private/incognito window and refresh once
Within ~30 seconds you should see a green Verified badge and live visitor count
If verification fails, check:
Script ID matches your project in Humblytics
The domain you added in Humblytics matches the domain visitors actually land on (with or without
www)The script appears in your page source (right-click → View Page Source, search for "humblytics")
Open DevTools → Network tab, refresh, and filter for
hmbl.min.js. A 200 status means the script is loading.Your dashboard says Waiting for visitors? That means the script is verified but no pageviews have arrived yet. Visit the site in an incognito window, or see Verify & Troubleshoot Tracking.
5 · Revenue tracking on Shopify
Shop Pay and Shopify Payments checkout revenue is not tracked. Humblytics revenue attribution natively supports Stripe and Foxy. Shopify's checkout runs on Shopify's own sandboxed domain, so purchase events there can't be captured by the tracking script.
What you can do today:
Storefront analytics, funnels, heatmaps, and A/B tests all work normally on your store pages.
If your store charges through Stripe, connect the Stripe integration for full revenue attribution.
For other setups, see Other Payment Providers for what's possible with custom purchase events, and the limitations that apply to hosted checkouts.
If Shop Pay revenue tracking matters to your business, email support@humblytics.com. We're gauging demand for deeper Shopify integrations.
FAQ
Does this work on Shopify Plus? Yes. The same snippet works across all Shopify tiers, including Plus.
Will it slow down my store? No. The script is ~36 KB, loads asynchronously, and doesn't block page rendering.
Are checkout pages tracked? No. Shopify's checkout runs on a separate, sandboxed domain that doesn't load theme code. Storefront pages (home, collections, products, cart) are all tracked.
Last updated