This method can create some clever domains and also have the advantage of using the domain extension itself as part of the word or words you're trying to convey. 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. You can copy the resulting bit.ly link and use it in your tweets, in your e-mail, or even on your website.
However, not all internet users are pleased to use Bitly. I highly recommend you check out their 14 day free trial and see if you like the interface and simplicity with which it comes with.Storing a reference to a file or directory by using its path and file name is not reliable. Thus, short URLs may be more convenient for websites or hard copy publications (e.g. a printed magazine or a book), the latter often requiring that very long strings be broken into multiple lines (as is the case with some e-mail software or internet forums) or truncated. Here are 5 URL Shorteners that I actively use: Bitly: This website allows you to create an unlimited amount of bitlinks, which come with analytics and tracking. Keys can be generated in base 36, assuming 26 letters and 10 numbers.
In this article: Using Google Tag Manager If you use Google Tag Manager to manage your Analytics tracking, follow the instructions in Analytics Events to implement events. A name everyone instantly trusts when they see the URL. Example: South Park Studios uses cart.mn to recreate, in a shortened form, the name of one of its most well known characters. This ability is installed on the browser via the TinyURL website and requires the use of cookies.[31] A destination preview may also be obtained by prefixing the word "preview" to the TinyURL URL; for example, the destination of is revealed by entering .
On Bitly, click the “Info Page +” link to view statistics. Undo Undo Shorten URL @ShortenURL 3 Jul 2011 More Statistics for Sunday, July 3, 2011 Thanks. Learn how to enable your public profile visibility.
But otherwise, the free account is useful enough for comprehensive link tracking. Typically, it’s used for recording on-page JavaScript-controlled interactivity such as opening a widget or making an Ajax call. So if you have a page at , you can use the URL and going to this URL will forward the visitor to the page in your website. Paste the link into a text file, so you can view the entire link, and find the value that follows c= at the end of the link address. Abuse[edit] URL shortening may be utilized by spammers or for illicit internet activities. Do E-Commerce and Analytics360 data figures not match on your campaign report? Due to the differences in Google Analytics and MailChimp tracking, it's normal for Analytics360 and E-Commerce revenue figures to vary.