> For the complete documentation index, see [llms.txt](https://docs-vnext.kiflo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-vnext.kiflo.com/manage-partners/referral-links/manage-referral-links-for-partners.md).

# How to manage referral links for your partners?

Referral links (or affiliate links) in Kiflo can be used to track leads and visitors coming from your partners to your website. Leads will be automatically associated with the partner who referred them.

{% hint style="info" %}
**IN THIS ARTICLE**

[Install Kiflo tracking code](#install-kiflo-tracking-code)

[Create a referral link for all partners in a Program](#create-a-referral-link-for-all-partners-in-a-program)

[Create a referral link for a partner](#create-a-referral-link-for-a-partner)

[View referral links of my partner](#view-referral-links-of-my-partner)
{% endhint %}

## Install Kiflo tracking code <a href="#install-kiflo-tracking-code" id="install-kiflo-tracking-code"></a>

To begin, you first need to install the Kiflo javascript snippet on your website. It is similar to the Google Analytics snippet and will handle:

* Tracking cookies for visitors and leads
* Communication between your website and your Kiflo account

To install the Kiflo javascript snippet, please refer to this page: [https://docs.kiflo.com/article/34-get-started-with-kiflo-js](/developers/js-sdk/get-started.md)

## Create a referral link for all partners in a Program <a href="#create-a-referral-link-for-all-partners-in-a-program" id="create-a-referral-link-for-all-partners-in-a-program"></a>

To get started, follow these easy steps:

* Go to **Programs**
* Go to the partner program you want to create links for
* Click on **Links**
* Click on **Add link**
* Type in the **Name,** and it will be used to identify the link for your partners in their portal
* Type in the **Target URL**, and it will be used to redirect visitors to this URL when they click on it
* Click **Add**

  ![](https://3041514930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkJn82Qo5a0Y4fOsoQzo%2Fuploads%2Fgit-blob-57901dd7dc18c46cbb14da4b5047da7c94f6dd45%2F63fdd662b7da6b15a7ea1fcb.png?alt=media)

## Create a referral link for a partner <a href="#create-a-referral-link-for-a-partner" id="create-a-referral-link-for-a-partner"></a>

Follow the steps below to get started:

* Go to the Partner, select the Partner you want to create a link for, go to **Links**, and press **Add link**
* Type in the **Name** that will be used to identify the link for your partners in their portal
* Type in the **Target URL** that will be used to redirect visitors to this URL when they click on it
* Select **Add**

## View referral links of my partner <a href="#view-referral-links-of-my-partner" id="view-referral-links-of-my-partner"></a>

Links also have some metrics, such as unique visitors, leads, customers, transactions, and revenues.

If you’ve created a link as described above and the partner is part of the associated program, then a unique link will be automatically generated for all partners in the program.

Each link will contain a referral code that is used to identify each partner.

To view all your partners’ links, follow these steps:

* Go to the **Partners** page
* Click on the **Links** tab

Here you will be able to view all the links with their statistics.


---

# 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-vnext.kiflo.com/manage-partners/referral-links/manage-referral-links-for-partners.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.
