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

# Track Shopify orders from your taap.it links

> See which taap.it link each Shopify order came from: add one script to your theme, create three webhooks, and hide the Buy Now button.

The Shopify integration attributes your checkouts and paid orders to the taap.it link that brought the customer. The setup happens in your Shopify admin: one script in your theme and three webhooks. You copy and paste, you do not write code.

> [!NOTE]
>
> A taap.it link to your store counts clicks on its own. To see leads and sales, you need conversion tracking, which depends on your plan. See the [pricing page](https://taap.it/pricing).

## Before you start

* Create a taap.it deeplink that points to your store or to a product page.
* Enable **Conversion Tracking** on that link. See [how to turn it on](https://docs.taap.it/help/analytics/conversion-tracking.md).

## Set it up

**1. Add the taap.it script to your theme**

In Shopify, go to **Online Store**, then **Themes**, and open the code of your active theme. Paste the taap.it script into the **theme.liquid** file, just before the closing `</head>` tag, then save.

**2. Create three webhooks**

In Shopify, go to **Settings**, then **Notifications**, and scroll to **Webhooks**. Create one webhook for each of these events, all with your taap.it webhook URL:

* **Order payment**
* **Checkout creation**
* **Checkout update**

**3. Hide the Buy Now button**

In your theme editor, select a product page section, uncheck **Dynamic checkout buttons** and save. Orders placed with the Buy Now button skip the cart and cannot be tracked.

**4. Test it**

Open your store from your taap.it link, add a product to the cart and start the checkout: a lead should appear in taap.it. Complete a test order: a sale should appear.

The exact script and your webhook URL are in the [Shopify integration guide](https://docs.taap.it/conversions/automatic/shopify.md). Follow it side by side with this page.

## What gets recorded

| In Shopify | In taap.it |
| - | - |
| A customer starts the checkout | Lead |
| The cart changes during checkout | The lead is updated |
| An order is paid | Sale |

## Good to know

* Tracking only works when the customer arrives through a taap.it link and goes through the standard cart and checkout.
* taap.it only redirects visitors to your store. It does not change how Shopify records its own visits and add to carts.
* A custom storefront that does not use a regular Shopify theme needs a developer setup instead. See the [conversion tracking overview](https://docs.taap.it/conversions/overview.md).

Something missing? See [why a lead or sale is missing from your stats](https://docs.taap.it/help/analytics/conversions-not-showing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.