AddThis Academy

An ever-growing library of resources to help you become a better online marketer.

URL Shortening

Our share-time URL shortening makes it easy to integrate AddThis with your click analytics. Twitter shares are automatically shortened with so you only need to use this feature if you want integration. Best of all, it works with vanity domains as well as the usual domains.

Bắn cá 4399At this time, only shares to Twitter are supported with our shortening service.

Bắn cá 4399To configure our URL shortener, you will need to do two things:

  1. Add a snippet of JavaScript code to the pages on your website (see Shortening Code below)
  2. Register a new app from Bitly and provide us with your Client ID and Secret. Your credentials will be stored safe on our servers and won’t be exposed in your site’s html. The steps for doing so are included below:

Bắn cá 43991) Log into your account.

Bắn cá 43992) Click on Profile Settings > Registered OAuth Applications > Get Registration Code. You will then receive a confirmation email from Bitly.

3) Click the link from the Bitly email, and set up your new application with these options:
Application Name: (Choose any unique name)
Application Link:
Redirect URIs:
Description: AddThis Tools Link Shortening

(Note: it is very important to get the values exactly)

Bắn cá 43994) Open the Bitly Application that you just created. Copy the Client ID and Secret from that screen. Then log into your dashboard, click on Profile Settings, navigate to Link Shortening, and enter the Client ID and Secret in the corresponding fields.

5) Click on “Save and Authorize,” which will take you to a confirmation on Approve the request. Shortening Code

If you’re using our sharing buttons, add the code below to your addthis_share configuration object and specify the services that you want to use shortening.  For example “twitter”, as shown here:

<script type="text/javascript">
var addthis_share = {
     // ... other options
     url_transforms : {
          shorten: {
               twitter: 'bitly'
     shorteners : {
          bitly : {} 

Bắn cá 4399You’ll also need to make sure that your page has a valid in order for the URL shortening to work properly.

Bắn cá 4399Last modified:  April 22nd, 2020