> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/program-settings/advanced-settings/enable-variant-tracking.md).

# Enable Variant Tracking

**GoAffPro** provides you with the option to enable variant tracking.

{% hint style="info" %}
The variant tracking feature ensures that tracking is maintained when automatic product variant redirection is setup on your product pages.&#x20;

If your store has this setup, it will automatically remove the affiliate's referral code from the product page link, and the variant tracking feature will maintain the tracking.
{% endhint %}

To enable variant tracking, go to the Advanced section of the **Settings** tab in the GoAffPro admin panel.

<figure><img src="/files/hqodY4xizznZ1KUpUz2e" alt=""><figcaption><p>Settings > Advanced</p></figcaption></figure>

Here, go to the Variant tracking section.

<figure><img src="/files/lyltdycvneCYCDD1pTg7" alt=""><figcaption><p>Variant tracking</p></figcaption></figure>

Now, enable the toggle.&#x20;

<figure><img src="/files/7VZ2h0959wRnLRS3b84s" alt=""><figcaption><p>Enable the toggle</p></figcaption></figure>

After enabling, this will ensure that the sales tracking works, even if you have an automatic product variant redirection set up for your product pages.

<figure><img src="/files/NHD7TpvH1NmsqJHBsMCx" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/5msEVC__kiY>" %}
Enable Variant Tracking
{% endembed %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.goaffpro.com/program-settings/advanced-settings/enable-variant-tracking.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
