For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 (omit https:// and www). If your store lives on your-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

  1. In your Shopify admin, go to Online Store → Themes

  2. On your live theme, click the three-dot menu (⋯) → Edit code

  3. In the file list, open Layout → theme.liquid

  4. Find the closing </head> tag (usually near the top of the file)

  5. Paste your Humblytics snippet on the line just before </head>

  6. Click Save

Note: Replace YOUR_ID_HERE with your actual project ID from Humblytics.

4 · Verify installation

  1. Return to Humblytics and click Verify Website

  2. Open your live storefront in a private/incognito window and refresh once

  3. 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

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