> For the complete documentation index, see [llms.txt](https://docs.uppromote.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uppromote.com/settings/affiliate-link-settings/default-affiliate-link.md).

# Default affiliate link

The affiliate link is your store URL with our tracking parameters. Our system will track every referral order made via the affiliate link.

Once you install UpPromote for your Shopify store, your store URL will be set as the default redirect of all affiliate links.&#x20;

This means that they will be redirected to your store's homepage by default. You can view or edit your store URL in **Settings > Link & coupon** > **Store URL**.

<figure><img src="/files/HBMqmCryqjjgm1dNmfIl" alt="edit store url"><figcaption></figcaption></figure>

### **Set default affiliate link for each program**

If you want each program's affiliate links to direct to another page of your store rather than the homepage, you can use the function **Set default affiliate link for each program.** You will have the option to select programs individually and modify their affiliate link destinations.&#x20;

For example, if you want all affiliate links of one program to head to a specific product page, put the URL of that product page into the **Affiliate link destination** field.&#x20;

<figure><img src="/files/oJaRtVUytfPG8Ld1U9zN" alt="edit the affiliate link destination"><figcaption></figcaption></figure>

After clicking **Save**, all the affiliate links of that program will be redirected to the new destination.&#x20;

{% hint style="info" %}
Please note that the domain of the affiliate link destination must be the same as your **Store URL**. Our system cannot track conversions on pages that are not on your store.&#x20;

In case you've already set different affiliate link destinations for some programs, if you change your Store URL, all programs' link destinations will be automatically updated to the new URL.
{% endhint %}

### **Re-sync links**

If you've had custom affiliate links and are in the Professional plan or above (or subscribing to the Feature add-on plan), when you change the affiliate link destination, the link redirects won't be automatically updated. Instead, after saving changes, you will see a green banner including the **Re-sync links** button that you can click on to update the program's custom links to the correct destination.

<figure><img src="/files/UObSZltiuldbrjL68AFo" alt="re-sync link"><figcaption></figcaption></figure>

On the affiliate's end, when they sign up, the system will automatically generate the default affiliate link. They can find it in their affiliate admin's Dashboard:

<figure><img src="/files/GoSVm0vWhNIwVthOyDjh" alt="how affiliates find the link in the dashboard"><figcaption></figcaption></figure>

{% hint style="info" %}
Tip: If you want the affiliate links to be trackable on YouTube's description, you will need to add "/" at the end of the link.&#x20;
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.uppromote.com/settings/affiliate-link-settings/default-affiliate-link.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
