# 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 %}


---

# Agent Instructions: 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:

```
GET https://docs.goaffpro.com/program-settings/set-cookie-duration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
