> ## Documentation Index
> Fetch the complete documentation index at: https://speakeasy-20cf8bdf.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify

> How to add @dub/analytics to your Shopify store

With `@dub/analytics`, you can track lead and sale conversions on your Shopify store, enabling you to measure the effectiveness of your marketing campaigns.

You can add the `@dub/analytics` script to your Shopify store simply by installing the [Dub Shopify App](https://d.to/shopify/app) from the App Store.

<Frame>
  <img src="https://mintcdn.com/speakeasy-20cf8bdf/-Y0j4C06SQOILvRL/images/shopify/shopify-app.png?fit=max&auto=format&n=-Y0j4C06SQOILvRL&q=85&s=201362dceb2b35bae1c933e1427e1673" alt="The connection status in the Dub Conversions app" width="2462" height="1470" data-path="images/shopify/shopify-app.png" />
</Frame>

Then, make sure to activate the `@dub/analytics` script by following these steps:

1. Navigate to your Shopify admin panel.
2. Go to **Online Store** > **Themes**.
3. Click on **Customize** for your current theme.
4. In the theme editor, select the **App embeds** tab.
5. Locate the **Analytics Script** for the Dub Conversions app and toggle it to activate.

<Frame>
  <img src="https://mintcdn.com/speakeasy-20cf8bdf/-Y0j4C06SQOILvRL/images/shopify/shopify-enable-tracking-script.png?fit=max&auto=format&n=-Y0j4C06SQOILvRL&q=85&s=6fb86a8a90641c6563025a6a96d8a836" alt="Enable the Dub Analytics script in your Shopify theme" width="1412" height="983" data-path="images/shopify/shopify-enable-tracking-script.png" />
</Frame>

## Installation video

Here's a video showing how to install and activate the `@dub/analytics` script in your Shopify store:

<iframe width="100%" height="469px" className="rounded-xl" src="https://www.loom.com/embed/936970b8db5b41488657fa92ffec384a?sid=04030975-6d7e-4126-8487-a1d9a3095efc" title="Loom video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />
