> For the complete documentation index, see [llms.txt](https://docs.bixgrow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bixgrow.com/affiliate-links/tracking-on-headless-shopify-stores.md). Agents can also search and read this documentation through its [MCP server](https://docs.bixgrow.com/~gitbook/mcp).

# Tracking on headless Shopify stores

By default, BixGrow cannot track affiliate links on headless stores. To help with this, you can add a custom JS code snippet to enable normal conversions tracking.

## How tracking works on headless stores

Headless stores can always track referrals via affiliate coupon codes. This works automatically without any code additions. However, to track standard affiliate links, you must install our tracking code and meet the conditions below.

## Key requirement for link tracking

Before setting up link tracking for a headless store, please ensure that you are an **Advanced** subscription, and your checkout page runs on a subdomain of your main store's domain.

{% hint style="info" %}
For example, if your store domain is `abc.com`, your checkout page must look like `checkout.abc.com`. If it redirects to a completely different domain, link tracking cannot be supported.
{% endhint %}

## Step-by-step setup guide

1\) Reach out to the BixGrow support team to request your custom tracking code.

2\) Our development team will send you a unique JavaScript (JS) code snippet for your store.

3\) Insert the given JS code into the source code of your headless store.

Once the code is successfully added, your BixGrow affiliate links will track all referral traffic and sales normally.

<br>
