Source: https://datafa.st/docs/shopify
Markdown source: https://datafa.st/docs/shopify.md
Description: Connect your Shopify store to automatically track visitors, revenue, and revenue attribution. No manual script installation needed.

# Add DataFast to your Shopify store

It takes 3 minutes and no coding required. Once connected, DataFast automatically tracks:

- **Visitor analytics** - Pageviews, visitors, referrers, devices, countries, etc. You don't need to install the `<script>` tag manually!
- **Custom events** — `add_to_cart` and `initiate_checkout` are automatically tracked to help you create [conversion funnels](/changelog/conversion-funnels).
- **Revenue from orders** - All completed orders from your Shopify store
- **Revenue attribution** - Links revenue to traffic sources (referrers, countries, devices)

You'll also unlock advanced features like [Journey](/changelog/goal-tracking) and the [Real-time globe](/changelog/real-time-map) 🌍.

> **Important:** If you've previously installed the DataFast tracking script manually on your Shopify store, you **must remove it** before connecting. The Shopify integration automatically installs the tracking script, and having both will cause duplicate tracking.

## Step 1: Create a Shopify app (1 minute)

To connect DataFast to Shopify, you need to create a Shopify app and get API credentials:

1. Go to [Shopify Dev Dashboard](https://dev.shopify.com/dashboard) and create an account if you don't have one yet.
2. Click **Create app** at the top right corner.
3. Name your app (e.g., "DataFast Integration") and click **Create**

> Ensure Webhooks API Version is set to **2025-10**.

4. Scroll down to the **Access** > **Scopes** section and enable the following scopes:
   - `read_orders` - To track revenue from orders
   - `read_products` - To track product views
   - `read_customers` - To attribute revenue to customers
   - `write_script_tags` - To install the DataFast tracking script
5. Scroll down to the bottom and click **Release**
6. In the modal, leave all fields empty and click **Release**

## Step 2: Install the Shopify app to your store (1 minute)

1. Still on the [Shopify Dev Dashboard](https://dev.shopify.com/dashboard), click **Home** on the left sidebar.
2. Then click **Install app** at the top right corner.
3. Pick the Shopify store you want to connect to DataFast.
4. You'll be redirected to Shopify admin, click **Install**

## Step 3: Connect to DataFast (1 minute)

1. On the [Shopify Dev Dashboard](https://dev.shopify.com/dashboard), select your app and go to **Settings** on the left sidebar.
2. In the **Credentials** section copy your **Client ID** and **Secret**.
3. Go back to your [DataFast dashboard](/dashboard), select your website and enter your Shopify store details:  
   - **Shopify store domain**: Your store's Shopify domain (the domain containing `****.myshopify.com`, not your custom domain)
   - **Client ID**: The Client ID from your Shopify app
   - **Client secret**: The Secret from your Shopify app
> You will find the form to connect Shopify in the **General** settings of your website or in the onboarding flow when you create a new website.
4. Click **Connect Shopify**

Your Shopify store is now connected to DataFast! 🎉


### Verify installation

After connecting, verify everything is working:

1. Visit your Shopify store
2. Check your [DataFast dashboard](/dashboard) - you should see pageviews appearing within a few minutes
3. Make a test purchase (or check existing orders) - revenue should appear in your analytics

> If you see duplicate pageviews, it's because you have the DataFast tracking script installed manually on your Shopify store. You need to remove the DataFast `<script>` tag before connecting.
