> For the complete documentation index, see [llms.txt](https://docs.humblytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humblytics.com/how-to-get-started/shopify.md).

# Shopify

Add Humblytics to your Shopify store in about 3 minutes.

{% hint style="info" %}
**You need:** access to your theme code in Shopify admin. Works on every Shopify plan, including Plus.
{% endhint %}

## 1. Copy your tracking code

In Humblytics, open **Site settings → Install** and click **Copy tracking code**. Adding a new site? The code appears in step 2 of **Add Site**.

Copy the whole snippet, from `<!-- Start Humblytics Tracking Code -->` to `<!-- End Humblytics Tracking Code -->`.

## 2. Paste it into your theme

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 on the line just before `</head>`.
5. Click **Save**.

<mark style="background-color:pink;">ADD GIF HERE</mark>

{% hint style="warning" %}
The script lives in that theme only. If you switch or publish a different theme, add the snippet to the new theme's `theme.liquid` too.
{% endhint %}

## 3. Verify

1. Back in Humblytics, click **Verify install**.
2. Open your storefront in a private window and click around. Your visit appears in **Observe → Analytics → Overview** under **Live Activity** within about a minute.

**Not verifying?**

* You edited the live theme, not a draft or duplicate.
* The domain in Humblytics matches the one shoppers land on, with or without `www`.

Still stuck? See [Verify & Troubleshoot Tracking](/how-to-get-started/verify-and-troubleshoot-tracking.md).

## What's tracked on Shopify

| Tracked                                                    | Not tracked                                                                                  |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Home, collection, product, and cart pages                  | Checkout pages. They run on Shopify's own sandboxed checkout, which doesn't load theme code. |
| Analytics, heatmaps, funnels, and A/B tests on those pages | Shop Pay and Shopify Payments revenue                                                        |

If your store charges through **Stripe**, connect [Stripe](/how-to-track-purchase-events/stripe.md) for revenue attribution. For other setups, see [Other Payment Providers](/how-to-track-purchase-events/other-providers.md).
