Adding Support for Jekyll for Enhanced Link Tracking

For blog owners and web developers, understanding user interaction is key to optimizing the user experience. One way to gain insights into user behavior is through link tracking, which records the number of clicks a particular link receives. Services like not only provide link shortening but also track the number of clicks a link receives. If you are using Jekyll for your blog or website, you can integrate’s link tracking feature directly using the jekyll-bitly plugin.

To begin with, add the jekyll-bitly plugin to your Gemfile:

group :jekyll_plugins do
  gem 'jekyll-bitly', github: 'saiqulhaq/jekyll-bitly'

Next, include your token and the jekyll-bitly plugin in your _config.yml:

  - jekyll-bitly

Replace YOUR_BITLY_TOKEN with your token, and OTHER_PLUGINS with any other plugins you’re using.

Once you’ve done that, you can use the bitly filter to shorten and track your URLs:

[Link text]({{ '' | bitly }})

Replace with the URL you want to shorten and track, and Link text with the text you want to display for the link.

Your API token is available at Simply replace YOUR_BITLY_TOKEN in the _config.yml file with your API token.

Congratulations! You’ve successfully added support to your Jekyll site, which will allow you to track the click rates of your links, providing valuable insights into user interaction with your content.

Leave a comment