A URL shortener is an online application that converts a regular Uniform Resource Locator (URL) into its condensed format and still direct to the required page. The user only has to copy the full URL of a website and paste it into the URL shortening tool to come up with an abbreviated version that is around 6 to 10 or 10 to 2o characters long, depending on the shortener application.
For example, the URL http://example.com/user/post/postTitle/ can be shortened to "https://example.com/GHhkUy"
A friendly or short URL may be desired for messaging technologies that limit the number of characters in a message (for example SMS or tweet). A tweet can only go as long as 140 characters, so sharing a full URL with your followers can be difficult. So right thing to do is to shortened URL before sharing it to your followers.
Read more on URL shortener here
In this tutorial, am going to show you how to create a simple URL shortener that allow you to track the number of clicks the shortened link got over a certain period.
Knowing your metrics allows you to better optimize your Twitter or online marketing experience, identify posts that get your followers more engaged, and basically know what appeals to your network, or how often customer visit your site.