> 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/set-cookie-duration.md). Agents can also search and read this documentation through its [MCP server](https://docs.goaffpro.com/~gitbook/mcp).

# Set Cookie Duration

**GoAffPro** provides you with the option to set the cookie duration.&#x20;

{% hint style="info" %}
The cookie duration option lets you set the expiry/validity duration of the referral cookie that gets saved when the customer visits your store using an affiliate's referral link. This referral cookie lets the app track the customer's visits and orders.
{% endhint %}

To set the cookie duration, go to the **Tracking & Attribution** section in the **Settings** tab of the GoAffPro admin panel.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FR9fJGgj4gRkmLMuVM0Ka%2Fimage.png?alt=media&amp;token=0019283b-e11e-4535-bd23-c3e43309378d" alt=""><figcaption><p>Settings > Tracking &#x26; Attribution</p></figcaption></figure>

Here, go to the Cookie section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F3qZ1RPwG5nBUvUqiAELJ%2Fimage.png?alt=media&amp;token=4fb9e6ea-da95-4b11-9de8-fc924514f2fd" alt=""><figcaption><p>Cookie</p></figcaption></figure>

Now, set the cookie duration.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FijyqZhnuqYS5UPQjrZQ5%2FScreenshot%202026-11-30%20153759.png?alt=media&amp;token=4917d8a8-ff89-4af9-9666-2e14ea781ff8" alt=""><figcaption><p>Set the cookie duration</p></figcaption></figure>

After this, click on **Save**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FQkN29VRZ1Zehoy0fjHHR%2FScreenshot%202026-11-30%20153804.png?alt=media&amp;token=c42b1b34-08d7-428f-ac2a-a57fa9e5863e" alt=""><figcaption><p>Click on Save</p></figcaption></figure>

The customer (referred by an affiliate) will now be tracked for the duration set in the cookie duration section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FCi816vKsULX7o2EFp0Ca%2Fimage.png?alt=media&amp;token=71bb7e60-fa96-48cd-aa0c-7ba0bbd5e1b2" alt=""><figcaption></figcaption></figure>
