In the example above we have created a link to be shared on Twitter, as a tweet. utm_source parameter identifies the source of traffic this could be a site, a social media network, newsletter, app, etc. A shorthand link is associated with the registered URL. There are a lot of free link shortener services present online, but before all that we need to know the advantages or benefits of URL shortener. If you send announcement emails outside the normal flow of newsletters or ads, this might be labeled "announcement".
We want tracking to work everywhere so I recommend using a library with robust cross-browser event handling. All best affiliate gurus spend a big fortune creating, designing and improving their online marketing system to get an unfair advantage over everyone else.
For example, label the company logo that shows up on each email as "logo", or the main picture in an email as "main picture". Tracking links in Google Analytics using UTM Source Google Analytics has this amazing feature called custom campaigns. Twitter will use this to make your timeline better. 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. Maybe, the footer bar and the after post banner is working the best, but your sidebar ad is not.
Our agency activities and custom domain portfolio remains private and secure. Other URL shortening services provide a similar destination display.[32] Security professionals suggest that users check a short URL's destination before accessing it[citation needed], following an instance where shortening service cli.gs was compromised, exposing millions of users to security uncertainties.[33] There are several web applications that can display the destination URL of a shortened URL.[citation needed] Some URL shortening services filter their links through bad-site screening services such as Google Safe Browsing. Setting the transport method to 'beacon' lets the hit be sent * using 'navigator.sendBeacon' in browser that support it. */ var trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitCallback': function(){document.location = url;} }); } You'll also need to add (or modify) the onclick attribute to your links. To enable outbound link tracking, you need to add a little javascript to your website, and add a little code with each outgoing link that you want to track. Shortcomings[edit] Short URLs often circumvent the intended use of top-level domains for indicating the country of origin; domain registration in many countries requires proof of physical presence within that country, although a redirected URL has no such guarantee.
TinyURL tries to disable spam-related links from redirecting.[30] ZoneAlarm, however, has warned its users: "TinyURL may be unsafe. URL shorteners typically work by redirecting users using a special server response commonly referred to as a "301." This tells the browser that the resource at your short URL has been permenantly moved to the full URL's location. 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. This app quickly sees which of your links are more efficient in driving incoming traffic to your site. Bit.ly, which is what we integrate with in CoSchedule, uses a 301 redirect.