> ## Documentation Index
> Fetch the complete documentation index at: https://tinyanalytics.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify Analytics Integration

> Add tinyanalytics to a Shopify store by pasting the tracking snippet into your theme.liquid layout, so every storefront page is tracked.

To add tinyanalytics to a **Shopify** store, paste the tracking snippet into your theme's `theme.liquid` layout. That file wraps every storefront page, so one edit tracks your whole store.

## Before you start

* A tinyanalytics site. If you don't have one yet, follow the [Quickstart](/docs/tinyanalytics-quickstart).
* Your snippet from **Settings → Tracking** in your dashboard.

## Add the snippet to theme.liquid

<Steps>
  <Step title="Open your theme's code">
    In your Shopify admin, go to **Online Store → Themes**, then on your current theme choose **⋯ → Edit code**.
  </Step>

  <Step title="Open the layout file">
    Under **Layout**, open `theme.liquid`.
  </Step>

  <Step title="Paste before </head>">
    Paste your tinyanalytics snippet just before the closing `</head>` tag, then save:

    ```html theme={null}
    <script defer src="https://dash.tinyanalytics.io/script.js"
      data-site-id="YOUR_SITE_ID"></script>
    ```
  </Step>
</Steps>

<Tip>
  Replace `YOUR_SITE_ID` with your real site ID, and copy the full snippet from **Settings → Tracking** if you've toggled any options.
</Tip>

<Note>
  Editing `theme.liquid` tracks your **storefront** — product, collection, cart, and content pages. Shopify's hosted **checkout** pages are separate and can't be customized this way except on Shopify Plus, so checkout steps aren't tracked by this install.
</Note>

## Verify

Open your storefront in a browser, then check **Realtime** in your dashboard for your visit. See [Verify your setup](/docs/verify-tinyanalytics-installation) for the full check.

<Check>
  Your install is working when your own visit appears in **Realtime** in your dashboard.
</Check>

## Related

<Columns cols={2}>
  <Card title="Install on any platform" icon="puzzle-piece" href="/docs/integrations/install-website-analytics">
    The universal method and other platforms.
  </Card>

  <Card title="Track custom events" icon="hand-pointer" href="/docs/custom-event-tracking">
    Measure add-to-cart, signups, and more.
  </Card>

  <Card title="Configure the tracking script" icon="sliders" href="/docs/configure-tinyanalytics-tracking-script">
    Every `data-*` option you can set.
  </Card>

  <Card title="Verify your setup" icon="circle-check" href="/docs/verify-tinyanalytics-installation">
    Confirm tracking works.
  </Card>
</Columns>


## Related topics

- [BigCommerce Analytics Integration](/docs/integrations/bigcommerce-analytics.md)
- [Angular Analytics Integration](/docs/integrations/angular-analytics.md)
- [Gatsby Analytics Integration](/docs/integrations/gatsby-analytics.md)
