> 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, or the Humblytics Shopify app. 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? Click **Add site** on **Home** and the code appears in the install step.

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**.

{% 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** (during first-time setup, **Check my site now**).
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](https://docs.humblytics.com/how-to-get-started/verify-and-troubleshoot-tracking.md).

## What's tracked on Shopify

The theme snippet tracks your storefront: home, collection, product, and cart pages, with analytics, heatmaps, funnels, and A/B tests on those pages. Shopify's checkout runs outside your theme, so the theme snippet alone doesn't see it.

The **Humblytics Shopify app** closes that gap. It adds the tracking script through a theme app extension and installs a web pixel, so checkout completions and order events are captured alongside your storefront data. If you have the app, install it instead of editing `theme.liquid`; the steps above remain the manual route.

{% hint style="info" %}
Shopify revenue is captured, but it does not yet appear in **Attribution** or the revenue reports. If your store charges through **Stripe**, connect [Stripe](https://docs.humblytics.com/how-to-track-purchase-events/stripe.md) for revenue attribution today. For other setups, see [Other Payment Providers](https://docs.humblytics.com/how-to-track-purchase-events/other-providers.md).
{% endhint %}
