Skip to content

Install on Shopify

Edit theme.liquid and paste the tag just before the closing head tag, then repeat it for any other live theme.

Shopify themes have one layout file that wraps the whole storefront. The tag goes in it.

Where it goes

  1. Open the theme code

    Online Store › Themes, then Edit code on the theme that is live.

  2. Edit theme.liquid

    Under Layout, open theme.liquid and paste the tag just before </head>. Save.

html
<script defer data-website-id="ws_XXXXXXXX" data-domain="yourstartup.com" src="https://statsy.co/js/script.js"></script>

Confirm it works

Open your storefront in a private window and check Live. Browse to a product page and the path should follow you.

Every theme is a separate copy

Editing a theme changes only that theme. Duplicate it, install a new one, or publish a seasonal theme, and the tag does not come along. Re-paste it whenever you publish a different theme. Shopify’s own checkout and thank-you pages are not part of the theme, so the tag does not run there; the storefront pages before checkout are what Statsy measures.

Note. Revenue attribution in Statsy comes from payment webhooks for Stripe, Lemon Squeezy, Paddle, Polar and Razorpay, connected under Site settings › Integrations. See Get started for the connection step.

Last updated · Markdown version