Or maybe you’re using UTM tracking tags that make your link look ugly. Outbound links are the links which take visitors from your website to some other site on the web. My third choice, which was once my first choice, is Bitly. On this page enter your Google Analytics tracking ID and click the Save button.
The bad news is that if you’re posting links on Twitter, your link will automatically be shortened using Twitter’s t.co shortener. This can be added to existing JavaScript files or in a script block as long as it’s loaded somewhere within the HTML body (ideally, just before the closing tag). jQuery (or your alternative) must be loaded first although the Google Analytics tracking code can appear anywhere on the page. /* Track outbound links in Google Analytics */ (function($) { "use strict"; // current page host var baseURI = window.location.host; // click event on body $("body").on("click", function(e) { // abandon if link already aborted or analytics is not available if (e.isDefaultPrevented() || typeof ga !== "function") return; // abandon if no active link or link within domain var link = $(e.target).closest("a"); if (link.length != 1 || baseURI == link[0].host) return; // cancel event and record outbound link e.preventDefault(); var href = link[0].href; ga('send', { 'hitType': 'event', 'eventCategory': 'outbound', 'eventAction': 'link', 'eventLabel': href, 'hitCallback': loadPage }); // redirect after one second if recording takes too long setTimeout(loadPage, 1000); // redirect to outbound page function loadPage() { document.location = href; } }); })(jQuery); // pass another library here if required The event is recorded with the category name ‘outbound’, action name ‘link’ and the value set to the URL of the outbound page. It’s very simple interface will allow you create custom URLs so that it’s not just a random mix of letters and numbers if you want. bit.ly/0a0b0c0 TinyURL: Another one of the first, if not the first URL shorteners for Twitter.
Check Validation: Also optional, but this just makes sure the user “really” clicked on the link. Undo Undo URL Shortener @URL_Shorteners_ 10 Dec 2012 More A 140-character to Santa. The service imports all of your short URLs and stores them and will also take over your URL shortening domain if you decide to close it, ensuring links posted throughout the Internet continue to work.Geniuslink: smarter links for commerce Geniuslink offers URL shortening with your own custom branded domain powered by the most intelligent link management platform in existence. Click the copy icon to copy the link to the clipboard. You can even get your money before your event with our Advance Payouts program. Clicking on it will show you a list of outgoing URL(s) users clicked on your website.
Shortening links for Twitter simply means reducing its length and at the same time, it still works correctly. Google Analytics doesn’t “listen” for link click events by default, so that’s why we have to go the extra work of creating a link click listener tag. This example assumes that you are using the analytics.js tracking code. Twitter will use this to make your timeline better.
On the Links tab, Click Performance displays your tracked URLs and the number of total and unique clicks for each. OneLink™ Custom tracking links are app specific, which always direct clicking users to the page of the app that is specified on the tracking link. Whatever URL shortening service you use, you should probably read through their help to determine whether they also make their links permanent. We then redirect the user to the destination URL.