# Shopify

> How to add the Dub Analytics script to your Shopify store

import DubClientInstallVerify from "/snippets/dub-client-install-verify.mdx";

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="/images/shopify/shopify-app.png"
    alt="The connection status in the Dub app"
  />
</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 app and toggle it to activate.

<Frame>
  <img
    src="/images/shopify/shopify-enable-tracking-script.png"
    alt="Enable the Dub Analytics script in your Shopify theme"
  />
</Frame>

<DubClientInstallVerify />

## 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
/>
