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. 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. The only way to track clicks from your Facebook wall links is to use a URL shortening service for each external link that you post to your wall. The reason for this is because cookies cannot be set cross-domain, and pageviews, interest data and campaign-specific purchase attribution would not function.
Not all redirection is treated equally; the redirection instruction sent to a browser can contain in its header the HTTP status 301 (permanent redirect), 302, or 307 (temporary redirect). Some websites prevent short, redirected URLs from being posted. 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.
ClickMeter is a super-easy to use web-based professional tool. Answer that, and your online profits will explode. Because we’re creating an event to track clicks on a specific type of link!
You can copy the resulting bit.ly link and use it in your tweets, in your e-mail, or even on your website. Launch and use Now that you're all set up, you're ready to use your new URL shortener.
Fallback parameters allow you to send users that are using the wrong platform to another location. Twitter will use this to make your timeline better. If it contains any query strings such as ? & = then it is a dynamic URL. eg: 357&sort=date (Note also that blank spaces are never allowed in a web address). Link Tracking information is displayed on the Edit Item page of any link it is enabled for. Launch and use Now that you're all set up, you're ready to use your new URL shortener. Twitter will use this to make your timeline better. Before we answer that question, lets first talk about why would you want to track links in Google Analytics?