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

# Affiliate program default tracking settings

With Partnero, you can customize your program's link structure and query parameters. To do that:

1. Open your affiliate program and go to **Settings** under **Program**.
2. On the **General** tab, scroll down to the **Default tracking** section: <img src="https://mintcdn.com/partnero/Pnr3mkJEoUmefJLN/images/articles/affiliate-program-default-tracking-settings/898332e2.webp?fit=max&auto=format&n=Pnr3mkJEoUmefJLN&q=85&s=48699474fb7361e1d9bbdfb137dbf1c9" alt="" width="2870" height="1544" data-path="images/articles/affiliate-program-default-tracking-settings/898332e2.webp" />

***

### Referral link structure

Two link structures are available:

* Query: [https://demowebsite.com](https://demowebsite.com)**?aff=token**
* Link: [https://demowebsite.com](https://demowebsite.com)**/aff/token**

⚠️ **Important**: If you opt for the **Link** structure, ensure your website supports it to avoid non-functional referral links.

Next, you can change the query parameter name. The query parameter is a part of the referral link.
The default value is "aff". However, it can be changed - the screenshot below has an example with a query parameter "partner":

<img src="https://mintcdn.com/partnero/Pnr3mkJEoUmefJLN/images/articles/affiliate-program-default-tracking-settings/d2d25257.webp?fit=max&auto=format&n=Pnr3mkJEoUmefJLN&q=85&s=9554339e2944ce35738c96808ccac905" alt="" width="1226" height="708" data-path="images/articles/affiliate-program-default-tracking-settings/d2d25257.webp" />

Make sure to click **Update** after you make any changes!

***

### Attribution window and model

Next, you can configure the attribution window (cookie lifetime) and model.

<img src="https://mintcdn.com/partnero/Pnr3mkJEoUmefJLN/images/articles/affiliate-program-default-tracking-settings/967b7d9a.webp?fit=max&auto=format&n=Pnr3mkJEoUmefJLN&q=85&s=3c132f6f09c8067eec2aaea73aa8df0b" alt="" width="2878" height="1542" data-path="images/articles/affiliate-program-default-tracking-settings/967b7d9a.webp" />

The **attribution window** defines how soon after clicking a referral link a customer has to sign up to be associated with the referring affiliate partner. You can select one of the available options or enter your number in the Custom field:

<img src="https://mintcdn.com/partnero/Pnr3mkJEoUmefJLN/images/articles/affiliate-program-default-tracking-settings/222a85b1.webp?fit=max&auto=format&n=Pnr3mkJEoUmefJLN&q=85&s=e7bda800857904606a378cd3aababa88" alt="" width="668" height="314" data-path="images/articles/affiliate-program-default-tracking-settings/222a85b1.webp" />

The **attribution model** is important if a referred customer clicked on two or more different referral links. The model determines whether the commission is given to the first or most recent affiliate:

* Last click: the commission is assigned to the affiliate whose referral link was clicked most recently before the conversion.
* First click: the commission is assigned to the affiliate whose referral link was clicked first, even if the customer interacted with other affiliate links later.

<img src="https://mintcdn.com/partnero/Pnr3mkJEoUmefJLN/images/articles/affiliate-program-default-tracking-settings/31745a66.webp?fit=max&auto=format&n=Pnr3mkJEoUmefJLN&q=85&s=1a1b3dc12abd5f03e2a5e68e9fe4e351" alt="" width="664" height="252" data-path="images/articles/affiliate-program-default-tracking-settings/31745a66.webp" />Make sure to click **Update** after you make any changes!

***

### UTM tracking

Lastly, you can set up UTM tracking for referral links:

<img src="https://mintcdn.com/partnero/Pnr3mkJEoUmefJLN/images/articles/affiliate-program-default-tracking-settings/201fdf01.webp?fit=max&auto=format&n=Pnr3mkJEoUmefJLN&q=85&s=78c1862d153436b6150ba3408216ead6" alt="" width="2866" height="1538" data-path="images/articles/affiliate-program-default-tracking-settings/201fdf01.webp" />

[Click here to read more about UTM tracking.](/knowledge-base/tracking-links-coupons/set-up-utm-tracking-for-referral-links)

***


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