> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Link tracking settings

Link tracking settings control how your partners’ referral links are structured and how conversions are attributed. You set them once for the whole program, and a preview shows how the links will look.

***

### Access link tracking settings

In your program, go to **Program** > **Settings** and find the **Link tracking** section.

![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-240.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=f36709c9a7e970f07733bf38fa8572cd)

#### Referral link structure

Choose one of two structures:

* **Query:** `https://yourwebsite.com?aff=token`
* **Link:** `https://yourwebsite.com/aff/token`

**Important:** If you choose **Link**, make sure your website supports this structure. Otherwise, referral links will not work.

Under **Query parameter name**, enter the parameter that appears in your partners’ referral links. The default is `aff`. For example, if you enter `partner`, links look like `https://yourwebsite.com?partner=token`.

![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-243.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=d41ce66b50f963e29b0e213a24e3e667)

#### Attribution window

The attribution window, also called cookie lifetime, sets how many days after clicking a referral link a partner still receives credit for a conversion. Choose from available options (1, 3, 7, 14, or 30 days) or enter a custom number.

#### Referral click attribution model

The attribution model decides which partner gets credit when a customer clicks referral links from more than one partner.

* **Last-click:** Credit goes to the partner whose link was clicked most recently before the conversion.
* **First-click:** Credit goes to the partner whose link was clicked first, even if the customer clicked other partners’ links later.

![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-242.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=37ea95ff024b6d6c916da431e3c78466)

Click **Update** to save changes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.