You are also able to use the same tools such as bookmarklets and third-party apps using their API with your custom domain name. You can copy the link by pressing and holding the link and then select copy from the options that will pop out.
Bitly also offers a paid version, but it's pretty pricey. It's only one of the most popular social media management tools currently out there! Don’t fall for one of those “build your Twitter follower count fast” programs. We recommend choosing only one type of Google Analytics tracking.
Launch and use Now that you're all set up, you're ready to use your new URL shortener. This is a great solution if your landing page is an actual URL your contacts will be visiting.
Examples of this are rickrolling, redirecting to shock sites, or to affiliate websites. Click this number in your report to open a list of subscribers who clicked. The comparison continues here: Goo.gl Vs Bitly Best Way To Shorten Urls.Pinterest Stumbleupon Whatsapp Email Advertisement Many of us do a lot of communication via the Internet these days— for example, regularly emailing and posting URL links for various purposes. That fact makes it easy to use only, in online profiles and anywhere else that you want to put a link and track it.
Fortunately, we can gather outbound link details ourselves.
Example for event tracking using the newer API: function makeShort() { var longUrl=document.getElementById("longurl").value; var request = gapi.client.urlshortener.url.insert({ 'resource': { 'longUrl': longUrl } }); request.execute(function(response) { if(response.id != null) { str ="Long URL:"+longUrl+"
"; str +="Short URL: "+response.id+"
"; document.getElementById("output").innerHTML = str; } else { alert("error: creating short url n"+ response.error); } }); } function getShortInfo() { var shortUrl=document.getElementById("shorturl").value; var request = gapi.client.urlshortener.url.get({ 'shortUrl': shortUrl, 'projection':'FULL' }); request.execute(function(response) { if(response.longUrl!= null) { str ="Long URL:"+response.longUrl+"
"; str +="Create On:"+response.created+"
"; str +="Short URL Clicks:"+response.analytics.allTime.shortUrlClicks+"
"; str +="Long URL Clicks:"+response.analytics.allTime.longUrlClicks+"
"; document.getElementById("output").innerHTML = str; } else { alert("error: "+response.error); } }); } function load() { //Get your own Browser API Key from gapi.client.setApiKey('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); gapi.client.load('urlshortener', 'v1',function(){document.getElementById("output").innerHTML="";}); } window.onload = load;