How to add Visitor Tracking code snippet to your website

WRITTEN BY
Picture of Curran Van Waarde
Curran Van Waarde

Founder of Visitor Tracking

Introduction

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

  1. In Shopify Admin go to Online Store → Themes.
  2. Find your live theme, click Actions → Edit code.
  3. Under Layout, open theme.liquid.
  4. Search for the closing </head> tag.
  5. 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.

5/5

Three reasons users love Visitor Tracking

1. visitor tracking tracks sources

Track Sources

Our customers love being able to see if their web visitors are coming from Google, Social Media, or elsewhere!

2. visitor tracking boosts conversions

Boost Conversions

It's easy to see exactly where users get lost in your funnel. When you can identify that, you can dramatically boost conversions.

3. visitor tracking helps you see Long-Term Growth

Long-Term Growth

With Visitor Tracking, it's easy to see how your website is growing over time and track how certain campaigns have boosted traffic!

Newest posts:

GDPR COMPLIANCE
Curran

GDPR Compliance

The General Data Protection Regulation (GDPR) act has ushered in a new era of data privacy and protection standards. This regulation impacts any entity dealing

Read More »

Table of Contents