> 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).

# 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 **General** section in the **Settings** tab of the GoAffPro admin panel.

<figure><img src="/files/pe1ZBL07S1WhwVRZwxvC" alt=""><figcaption><p>Settings > General</p></figcaption></figure>

Here, go to the Cookie Duration section.

![Cookie Duration](/files/-M3dIrahLhJWGQn-peIR)

Now, set the expiration duration of the affiliate tracking cookie.

![Set the expiration of the affiliate tracking cookie](/files/-M3dJDHNY2735rmdN9Yr)

After this, click on **Save**.

![Click on Save](/files/-M3dJa38E9Z3AmvPArH0)

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

![](/files/-M3dJlFFNhHu5b5wQlaH)

{% embed url="<https://youtu.be/IEETLkeEBfA>" %}
Set Cookie Duration
{% endembed %}
