Adding the code snippet to your website only takes 30 seconds!
Still not sure? Send this page to your developer and ask them to put your code snippet in your website!
NOTE: it may take 2-5 minutes after saving for VisitorTracking to start tracking new visitors so please stay on your site for a minute or two and click around a bit to ensure it is working!
How to add Visitor Tracking script on Shopify
If you go to your themes and click on theme.liquid. You will add your snippet by pasting it on the line directly above the end of the </head>
tag
- In Shopify Admin go to Online Store → Themes.
- Find your live theme, click Actions → Edit code.
- Under Layout, open theme.liquid.
- Search for the closing
</head>
tag. - Paste your tracking snippet immediately above it.
Here’s a screenshot of where you’d put it:

Important note about Shopify conversion tracking:
Shopify is phasing out the ability to inject third-party scripts into the checkout steps (Info/Shipping/Payment), blocking all new ScriptTags as of February 1, 2025 and ending legacy support by August 28, 2025.
You can still track your Thank You (Order status) page by pasting your VisitorTracking script into Settings → Checkout → Order status page – Additional scripts, which runs immediately after purchase confirmation. Just add your snippet there, and it will load on the Order status page so you can capture post-purchase visits and conversions.