Then, use the tracking link in your ads and promotions. All you have to do is enter your destination URL, and give your tracking link a name.
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. Some shortening services, such as goo.gl, tinyurl.com, and bit.ly can generate URLs that are human-readable, although the resulting strings are longer than those generated by a length-optimized service. This will receive an clicked-link events as they bubble up through the DOM. By entering in a URL in the text field below, we will create a tiny URL that will not break in email postings and never expires. Vanity Links You can make custom vanity links with any premium account. They keep URLs that are loaded with UTM tracking tags from looking ugly by hiding the length and characters in the UTM tracking system.
Sometimes a short URL is useful simply to give someone over a telephone conversation for a one-off access or file download, and no longer needed within a couple of minutes. This article is part of our HasOffers Basics series.
Let's say that you have a website with the homepage that is at: Entering that URL into TinyURL will create a URL like With this you can then redirect someone to anywhere within your site by appending a slash and the pages filename to it. Twitter will use this to make your timeline better. Twitter will use this to make your timeline better. TweetDeck and Seesmic (TweetDeck’s direct competitor) both offer numerous URL-shortener options (bit.ly, is.gd, TinyURL, and twURL), but only bit.ly offers click tracking. 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.
This example assumes that you are using the analytics.js tracking code. Services that don’t do this can end up being blacklisted on major websites which won’t allow links from such services to be displayed. You should add this script in your page header, but not within the basic Analytics tracking code snippet. Tracking links in Google Analytics using UTM Source Google Analytics has this amazing feature called custom campaigns. Shortened links allow you to share long URLs in a Tweet while maintaining the maximum number of characters for your message. Replace: Consider using letters or numbers in place of words. Include a link to a survey on some of our packaging labels. Undo Undo Shorten URL @ShortenURL 20 May 2011 More Revision 360: x Refactored Thanks. If you need to change your URL on your social network page, it's easy to do.) Bitly Bitly is at the top of the URL shortening game. Launch your Web browser and go to the Web page for your preferred URL shortening service. Keep your website safe Running a periodic check on your website's links will ensure that your website remains protected against spam and hackers. This UA code can be found next to your website’s profile in Google Analytics Dashboard. Using campaign tracking, however, you will be able to analyze your email traffic in great detail.