# Cookie

Some customers don't make purchases right on the first time they click on an affiliate link. In order to track the sales made by that customer on the same browser/device, our system always leave a trace in the browser's cookie. Within a certain **period of time**, <mark style="color:red;">UpPromote</mark> can track all orders made via that browser/device and consider them as referral orders, even if they don't click on the affiliate link again.&#x20;

Setting the **Cookie** time can help you decide how long the tracking works after a customer clicks on an affiliate link. You can change the Cookie period by going to **Settings** > **General** > **Cookie settings.**

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

{% hint style="info" %}
The tracking will start from the moment a customer clicks on the affiliate's link. If he clicks on the affiliate link again, the Cookie period starts over.
{% endhint %}

Within the cookie time you've set, every order made by this customer in your shop will automatically result in commissions tracked for the affiliate. There's no need for the customer to click on the affiliate link then, but that customer needs to use the **same device** **and browser** as they did the first time to make a purchase.&#x20;

For example, you set Cookie time at 30 days.

* For 30 days, if the customer buys anything from your shop, the commission will be credited to the affiliate.
* From Day 31 onward, any purchases from the customer not through the affiliate link will give the affiliate NO commission.&#x20;

The **maximum value** of Cookie time is **3652 days** (10 years).&#x20;

If you have multiple programs, you can also set different cookie periods for each program.&#x20;

{% hint style="warning" %}
If you set Cookie time as 0, the system won't be able to track orders using affiliate links anymore, while **tracking by coupons** still works.
{% endhint %}

![Join our community HERE.](/files/d4hFLpDCFZcLV9RYZgis)


---

# 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.uppromote.com/settings/general-settings/cookie.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.
