More » Goo.gl Here’s Google’s very own URL shortener, which is a popular choice that’s useful for just getting the job done as quickly as possible. The distributed link tracking service enables client applications to track link sources that have moved. 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.
When your campaign arrives in recipients' inboxes, the plain-text click tracking will look something like this example. For consistency, use your URL shortener whenever possible, rather than mixing your own custom domain with other generic ones. Hanselman was redirected through a convoluted path that used link shortening for analytics and tracking, and found the end result frustrating from a user standpoint. Real-time Reporting Every account (even the free one) gets access to the heart and soul of our tracking system - the line item report. Tag Manager uses several different types of event listener tags.
Paste the link into a text file, so you can view the entire link, and find the value that follows c= at the end of the link address. DyingLinks gives you control over how long you want your shortened link to be available, along with some other control and privacy features. According to Tonic Corporation, the registry for .to domains, it is "very serious about keeping domains spam free" and may remove URL shortening services from their registry if the service is abused.[21] In addition, "u.nu" made the following announcement upon closing operations: The last straw came on September 3, 2010, when the server was disconnected without notice by our hosting provider in response to reports of a number of links to child pornography sites.
On 14 August 2009 WordPress announced the wp.me URL shortener for use when referring to any WordPress.com blog post.[11] In November 2009, shortened links on bit.ly were accessed 2. Additionally, pageview calculations are unaffected by user activity tracked using the Event Tracking method. Like open tracking, it can help measure subscriber engagement. For example, your website has fifteen content pages. If you have a link domain enabled, wait to enable HSTS until after you have uploaded this certificate for your link domain.
A link converted by Twitter’s link service is checked against a list of potentially dangerous sites. Bitly is known as one of the pioneers of URL shortener. Macro Name: element url hostname Macro Type: Custom Javascript Custom Javascript: Caveats If you have a Google Analytics Premium account, note that this will increase the # of events for you site. After that, it’s up to you to decide what you need. With Bitly, you can track how many clicks your shortened links receive, plus bookmark and organize your links on your own personalized Bitly dashboard. Undo Undo Shorten URL Retweeted TechCrunchVerified account @TechCrunch 17 May 2011 More Amazon Buys The A. Bitly also offers a paid version, but it's pretty pricey. Contents Purposes[edit] There are several reasons to use URL shortening. Join 250,000 in-the-know marketers and get the latest marketing tips, tactics, and news right in your inbox.