If you are using the newer Universal tracking please refer to the docs. 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. It’s a pain, but the outbound link tracking code shown below won’t work without it. (It could be made to work with legacy Analytics, but it’ll eventually stop working so it’s best to upgrade now.) Custom Event Tracking Analytics supports event tracking. Viewing your Link Clicking Data Once logged into Google Analytics, navigate to Behavior > Events > Overview There you will be able to view your event categories. For example, say you are using UTM codes to track website traffic.
See also[edit] [edit] External links[edit] URL redirection and shortening at Curlie (based on DMOZ) Comparison of URL Shortening Services, SearchEngineLand. Yet many are retracing their steps and playing clean up. But as Dave Winer articulated, there’s no reason we shouldn’t have a shortener ourselves, and here we are. 🙂 People are already using it.
Please see Google’s help page on Custom Campaigns for more information. Click Macro Redirect You can specify a custom click macro by first enabling the offer tracking setting, and then passing in a URL using the following parameter: redirect For this parameter, you can include either the {redirect} or {eredirect} macro to track your clicks in another tracking system. Maybe you want a simple URL to put in a print add, or want to be kind to mobile readers of your content. The downside of this approach, however, is that if a user visits your shortened domain without a directory path on the end, they will be directed to a Bitly branded page.
In the background, Analytics sends data by requesting an image beacon. My wife is thinking about having an online selling platform for a specific niche of antique products that she knows very, very ...Shorten URL @ShortenURL 1 Jul 2013 More I just signed up in support of . Undo Undo URL Shortener @URL_Shorteners_ 27 Dec 2012 More How Google Chrome 25 will tackle malicious extensions Thanks. But, if you need to shorten some links off of Twitter, or for other reasons, these are all great options.Viral videos are a great way to market your business, and YouTube is the most widely used video-sharing service on the Web. How often do you get that kind of data from printed marketing?
Link Tracking Limitations The distributed link tracking services are available only on the NTFS file system, and are only available for link sources on NTFS 3. Dead simple to manage multiple custom domains and multiple clients from a single account Consistent branding impression. If the shorthand link is found to be associated with a URL, the URL is fetched, otherwise an error message is returned.[7] The patent was filed in September 2000; while the patent was issued in 2005, US patent applications are made public within 18 months of filing. You can also use it to determine how to format your emails and what types of information to include. Bitly also offers a paid version, but it's pretty pricey. More » AdF.ly AdF.ly takes an interesting approach to link shortening by offering its users the opportunity to earn money by using its service.