---
title: "Install on Shopify"
description: "Add the XPmetric tracking snippet to your Shopify theme.liquid before the closing head tag."
source: "https://xpmetric.com/docs/install/shopify"
---
Add XPmetric to your Shopify storefront so every theme page sends pageviews.

<TokenCallout />

## Tracking snippet

<TrackingSnippet />

## Steps

1. In Shopify admin, go to **Online Store → Themes**.
2. On your live theme, click **Edit code**.
3. Open `layout/theme.liquid`.
4. Paste the snippet just before `</head>`.
5. Click **Save**.

## Verify

Open your store in an incognito window and browse a product page. The XPmetric dashboard live feed should show the visit within a minute.

## Revenue

Shopify checkout runs off your storefront domain. For payment attribution, use the [Payments API](/docs/revenue/payments-api) from your order webhook or backend when a purchase completes.

