Installation guides

Install the tracking script on Shopify

Paste the snippet into layout/theme.liquid to track your storefront, and send orders with the Payment API, since checkout pages don't run theme scripts.

Your snippet is in Settings → General of the website (the gear next to its name on the dashboard), with its id and domain filled in. The examples below use YOUR_WEBSITE_ID and yourdomain.com: replace them with yours.

  1. Edit your theme's code

    In Shopify admin, Online Store → Themes, then ⋯ → Edit code on your live theme.

  2. Paste the snippet in theme.liquid

    Open layout/theme.liquid and paste it just before </head>, then save.

    layout/theme.liquid
      <head>
        …
        <script
          defer
          supr-website-id="YOUR_WEBSITE_ID"
          supr-domain="yourdomain.com"
          src="https://supranalytics.app/js/script.js"
        ></script>
      </head>

Shopify's checkout pages don't run theme scripts. Your storefront visits are tracked; to attribute orders, send them with the Payment API from an order webhook.

Check it works

Open your website in a normal browser window, then the dashboard: the visit shows up within seconds, and the install card on a new website turns into the dashboard by itself. Nothing after a minute? See Not seeing any data.

AI agent or LLM? Read this page as Markdown