---
title: Setting up URL shorteners
related:
  - https://docs.kentico.com/k82/community-features/integrating-social-media/posting-to-social-media.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

URL shorteners allow you to access long URLs using a shorter link. A URL shortener takes a long link (such as <https://www.kentico.com/Product/Social-Networking>) and creates an alias for the link on a server with a short domain name (such as <http://goo.gl/bfQDZ>). URL shorteners can also count various statistics, such as the number of clicks on a particular link.

Kentico allows you to use URL shorteners for links that you paste into text when [posting to social media](https://docs.kentico.com/k82/community-features/integrating-social-media/posting-to-social-media.md). Kentico integrates the following URL shorteners:

- **Bit.ly**
- **TinyURL.com**
- **Goo.gl**

By default, users can use TinyURL.com. Other shorteners require setup.

## Setting up bit.ly shortener

Bit.ly requires applications that use its services to authenticate themselves. You must create an account on bit.ly and register your API login and API key into Kentico.

> **Note:** You must have the **Global administrator** [privilege level](https://docs.kentico.com/k82/managing-users/user-management.md) to do this.

1. Sign up or log in to [bit.ly](http://bit.ly).
2. Click your account name in the upper right corner and click **Settings**.

   ![Configuring bit.ly settings](https://docs.kentico.com/docsassets/k82/setting-up-url-shorteners/configuring_bitly_settings.png "Configuring bit.ly settings")
3. Click **Advanced**.
4. Under **Legacy API Key**, click **Show legacy API key**.

   ![Viewing the legacy API key](https://docs.kentico.com/docsassets/k82/setting-up-url-shorteners/legacy_api_key.png "Viewing the legacy API key")
5. Copy the information from Legacy API Key into **Settings -> Social marketing -> URL shorteners -> bitly** in Kentico.
6. **Save** the settings.

Bit.ly appears in the selection of URL shorteners when creating a new post, tweet or company update in the **Facebook**, **Twitter** or **LinkedIn** Kentico application.

## Setting up goo.gl shortener

Goo.gl requires applications that use its services to authenticate themselves. You must create an account on Goo.gl and register your API key into Kentico.

> **Note:** You must have the **Global administrator** [privilege level](https://docs.kentico.com/k82/managing-users/user-management.md) to do this.

1. Follow the instructions on <https://developers.google.com/url-shortener/v1/getting_started#APIKey> to get your API key.
2. Paste the API key to **Settings -> Social marketing -> URL shorteners** **-> goo.gl**.
3. **Save** the settings.

Goo.gl appears in the selection of URL shorteners when creating a new post, tweet or company update in the **Facebook**, **Twitter** or **LinkedIn** Kentico application.
