> 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/shorten-link-with-bit.ly.md).

# Shorten affiliate links with Bit.ly

Turn long affiliate URLs into short, shareable bit.ly links in UpPromote. Available from the Professional plan.

Our app supports automatically generating shortened affiliate links using a service from **Bitly.com**

Instead of *<https://demostore.com/collection?sca\\_ref=refferal\\_code>*, an affiliate link after being shortened would look like: ***<http://bit.ly/2pGYPMG>*****.**

## 1. Get Bit.ly access token

To get the Bit.ly access token, **log in** to your Bit.ly account [here](https://bitly.com/a/sign_in).

If you don't have a Bit.ly account, **sign up** [here](https://bitly.com/a/sign_up).

After logging in, click **Settings**:

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FBxjtXxSOAMLHsrgGuRIV%2Fimage.png?alt=media&amp;token=faf1c615-c8d9-4ece-9b55-c173631a6a19" alt="setting bitly account"><figcaption></figcaption></figure>

Once you're there, please click on **API** under Developer settings and insert your Bit.ly account password to **generate access token**.&#x20;

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2F9h2dInwSThmDDQtgblV0%2Fimage.png?alt=media&amp;token=4b5f2cb6-b568-42a7-b506-7860c894ad5e" alt="get api"><figcaption></figcaption></figure>

**Copy** the Access token, then get back to **UpPromote:**

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2Fn1fn1o5aiXWp7lpdD7rC%2Fimage.png?alt=media&amp;token=0a6af55e-4f50-4c9a-bc19-9a95d71b5ee1" alt="get access token"><figcaption></figcaption></figure>

## 2. Set up Shorten link

Go to **Settings** > **Link & coupon** > **Shorten affiliate link**, then enable **Shorten affiliate link with Bit.ly**. After that, fill out the Bit.ly token and click **Save** to complete the setup.

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FlH25DOYgmhsYJPM5TMXU%2Fimage.png?alt=media&amp;token=19b595b1-e03c-498c-84fc-4f9ae0dc7624" alt="set up shorten link in uppromote"><figcaption></figcaption></figure>

*Optional:* If you have set up a Bit.ly custom domain, you can put it into the box **Bit.ly Custom domain** so the shortened links would include it.&#x20;

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FJZCCDajC1st4Il0aHUie%2Fimage.png?alt=media&amp;token=d0f18d27-2b75-4114-8f17-a49c9922f113" alt="get the custom domain" width="563"><figcaption></figcaption></figure>

## 3. How affiliates get their shortened links

After activating **shortened link**, the shortened affiliate link will found on the affiliate account's **Dashboard.** Affiliates can simply click **Get shortened link**.

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FMTWS0idZ4W4lT0ivnld0%2Fimage.png?alt=media&amp;token=1aa85f63-50a5-42d9-8d8a-c45d6a5d8ec2" alt="how it look at affiliates&#x27; dashboard"><figcaption></figcaption></figure>

{% hint style="info" %}
Bit.ly is a platform with subscription plans as well. Therefore, please make sure that you have an account with them to make sure you can generate an unlimited number of links.
{% endhint %}
