Without tracking those metrics, how do you know which method is working the best? 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. This means you couldn't register, for example, domain.uk. Consider alternate extensions: If your top choice isn't available, consider using a country code TLD (ccTLD) such as .to or .co. Short URLs, for example, will be subject to linkrot if the shortening service stops working; all URLs related to the service will become broken.
Custom URLs Let us say that you want to generate a custom URL. For example, if a shell shortcut is created to link to a text document, the text document is the link source, and the shell shortcut is the link client. Use insights from tracking reports to understand who my customers are, spot product micro trends and ratchet up results on the next campaign. This website has been known to distribute spyware." TinyURL countered this problem by offering an option to view a link's destination before using a shortened URL.
It gives you yet another level of analytics that you can use to base your decisions on. You can change your URL up to five times within six months. Example: Nissan uses nssn.co Use initials: This tip works for personal or organization URL shorteners. Recently bit.ly announced the addition of a premium service to its URL-tracking system. Without taking this step, visits from emails will be recorded inconsistently. Still, you can create shorter links for other uses that don’t rely on link shortening services.
Take a look at your social media feeds and you’ll see that link shortening has really caught on as a practice. Tracking ID You can either manually type your unique Google Analytics ID into this field (ex: UA-########-1) or use a convenient macro that plugs this in for you. Nesbitt, Scott (7 February 2010). "Shorter Is Sweeter: A Look at URL Shorteners".Use branded short links to build customer trust and increases conversions. The regEx is a bit more complex than one would expect but it’s addressing a couple of use cases. Tag each link in an email with a different ad content so that you can see which links get clicked on the most, and how traffic from each link compares once the visitors are on the site.
Total clicks Total number of times any tracked link was clicked. Every web page or resource is specified by a unique URL, which means the internet consists of billions of URLs. They do this by showing your visitor an add before they are taken to another webpage. It's usually a good idea to announce, on any of your social media services you plan to use the shortener on, that you'll be shortening links through a custom domain form now on just so users feel comfortable clicking the links. 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. Twitter may be over capacity or experiencing a momentary hiccup. The network shares on the link source computer are changed. If done properly you should have "" on the above box.