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. I hope this article has helped you understand a little more about how URL shortening works. The SEO issue isn’t an issue, according to Google’s Matt Cutts.
Many people use URL shorteners when they share links to private content, and in fact many web services like Google Maps have offered automatic generation of shortened links for driving directions that reveal personal information like home addresses and sensitive destinations like "clinics for specific diseases (including cancer and mental diseases), addiction treatment centers, abortion providers, correctional and juvenile detention facilities, payday and car-title lenders, gentlemen’s clubs, etc."[34][35] Additional layer of complexity[edit] Short URLs, although making it easier to access what might otherwise be a very long URL or user-space on an ISP server, add an additional layer of complexity to the process of retrieving web pages. You need to categorize each link in each email so that the information reported is useful. It gives you yet another level of analytics that you can use to base your decisions on. This is achieved by using a redirect which links to the web page that has a long URL. Smartphone users now prefer bezel-less phones to large devices with not so good/large screen. It gives us profound insights about the media battle through social sites.
HootSuite ow.ly statistics shows different clicks on links shared through the management system. Launch and use Now that you're all set up, you're ready to use your new URL shortener. Undo Undo Shorten links ! @sqrl_in 18 Mar 2010 More was updated yesterday. Learn how to enable your public profile visibility.
You can change your URL up to five times within six months. This data is useful in aggregate to determine the response to your emails, including attributing purchases to sends, and also at the individual level to determine a user’s engagement and interaction with Lifecycle Optimizer rules and Audience Builder filters. It's only one of the most popular social media management tools currently out there! HootSuite ow.ly statistics shows different clicks on links shared through the management system. The disconnection of the server caused us serious problems, and to be honest, the level and nature of the abuse has become quite demoralizing. In this article, you’ll learn how to add Google Analytics tracking to your email campaigns, archives, and list pages.
Please refer to Part II of this post for specific cases of tags you can create. The new shortened link would be like goo.gl/htsl Clicking on the shortened link immediately takes you to the same long address. If you're willing to pay, consider Pretty Link Pro or these low cost solutions on Code Canyon. Failure to predict such problems with URL shorteners and investment in URL shortening companies may reflect a lack of due diligence.[26] Blocking and banning[edit] Some websites prevent short, redirected URLs from being posted. From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.Know which emails are working and which links are most effective. For those who read their emails in a browser (like Yahoo Mail, Gmail, etc.), they would still need to have HTML turned on for it to work, and even then, the email client may restrict whether any scripts embedded in the email can execute. Replace: Consider using letters or numbers in place of words. Therefore, as a Twitter marketer who needs to track link performance, you should use bit.ly. 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.