# Install on Shopify

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

Section: Installation guides  
Canonical page: https://statsy.co/docs/install/shopify  
Last updated: 2026-09-15

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.liquidUnder **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](https://statsy.co/docs/getting-started) for the connection step.

Previous: [Install on WordPress](https://statsy.co/docs/install/wordpress)  
Next: [Install on Webflow](https://statsy.co/docs/install/webflow)