← All guides
S3 min

Install on Shopify

Install the tracking script directly in your Shopify theme by editing theme.liquid, with no extra app required.

  1. Find your site ID

    From the dashboard, go to Settings and copy the site ID (SITE_ID) you created for this store.

  2. Open the theme code editor

    In Shopify Admin: Online Store → Themes. On your published (Live) theme, click the “⋯” menu → Edit code.

  3. Open theme.liquid

    In the left-hand column, under the Layout section, open the file layout/theme.liquid — this is the shared layout for every page in your store.

  4. Add the script right before </head>

    Find the closing </head> tag (usually near the top of the file) and paste the snippet right before it, then click Save.

    layout/theme.liquid
    <script defer data-site="SITE_ID" src="https://visitrack.app/tracker.js"></script>
  5. Check your live store

    Open your store in an incognito window (so you're not filtered out as an admin), browse a few product pages, then check the Live tab in the dashboard.

Don't have a site ID yet? You'll get one right after you create an account and add your site from Settings.