Skip the GA4 setup ordeal. Drop the HitCounters snippet into your theme and watch live visitors, referrers, and engagement.
yourstore.myshopify.com or your custom domain), and copy your 16-character tracking code.theme.liquid. This is the master template that wraps every page.</head> tag (usually around line 30-50) and paste this just before it. Replace YOURCODE with your actual tracking code:<!-- HitCounters.com --> <script async src="https://hitcounters.com/api/tracker.js?code=YOURCODE"></script> <noscript><img src="https://hitcounters.com/api/track.php?code=YOURCODE&noscript=1" alt="" style="display:none;"/></noscript>
async, doesn't block rendering, and weighs under 25 KB. Shopify's own performance tools won't flag it.checkout.shopify.com) and the snippet won't fire there. For checkout tracking, use Shopify's additional scripts feature on a paid plan, or set a URL goal for /orders/ or thank-you redirects.hcEvent('add_to_cart', value) JS API. Add it to your theme's product form via a snippet or via Shopify's custom JS. Define a matching Event goal on the Goals page.theme.liquid the same way.Free plan, no credit card required. Setup takes 2 minutes.
Sign up free See live demo