> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://publer.com/help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to set up RetargetKit URL Shortener


# To set up **RetargetKit** URL Shortener on Publer:

* Go to **Social Accounts** and select an account.
* Select **URL Settings** and click on  **RetargetKit**.

![Connecting RetargetKit](https://storage.crisp.chat/users/helpdesk/website/eefbebed3e091800/screen-shot-2024-11-30-at-1245_3q69m2.png)

* Go [here](https://app.retargetkit.com/settings/api) to generate the API credentials with RetargetKit.
* Generate an API token on [RetargetKit](https://app.retargetkit.com/settings/api) and **copy** it.

![Generating an API Token with RetargetKit](https://storage.crisp.chat/users/helpdesk/website/eefbebed3e091800/screenshot-2022-09-28-at-11214_19f67k5.png)

* Paste the API token on Publer and click on **Connect**.

![Connecting RetargetKit](https://storage.crisp.chat/users/helpdesk/website/eefbebed3e091800/screen-shot-2024-11-30-at-1472_ffmq2o.png)

* Once **RetargetKit** is connected to Publer, choose whether you want to:

1. Shorten any link. -- Publer will shorten all the links shared in the caption or comment of the post.
2. Shorten only link posts. -- Publer will only shorten the main link in the post.

|| Note: When you choose to **shorten only link posts** Publer will only shorten the main link in the post. For example, if you choose this option, create a video post, and add a link to the caption, that link won't be shortened. In this case, the link will be shortened only when the post is a link post (with a thumbnail).

* Moreover, you can choose the **Domain** name that you want to use for this social account etc.
* You can always deactivate RetargetKit by clicking on Disconnect. For more information go [here](https://help.publer.io/en/article/how-to-disconnect-url-shorteners-26l5f0/).

### Keep in mind:

* The link(s) will be automatically shortened the moment you schedule or publish the post.
* You need to do the above for **every** social account that you want to shorten the links for (you can easily duplicate settings by going to the account settings page).
* For the moment, you **cannot** select a custom domain.
* If you need to sync Campaigns, simply click on **Reconnect**.
---

Updated by: [Brikena Cani](https://publer.io/about/brikenacani)