See also[edit] [edit] External links[edit] URL redirection and shortening at Curlie (based on DMOZ) Comparison of URL Shortening Services, SearchEngineLand. Well in this article, we will show you how to track links in WordPress using Google Analytics. The associated shorthand link and URL are logged in a registry database. We can use event tracking to record outbound links but there are a number hurdles to overcome: the event must be recorded on all browsers and not impede navigation we should not need to manually identify or attach separate handlers to every outbound link, and we must ensure the event is recorded before the outbound page starts to load.
The examples use curl and OACurl to show you how to get started interacting with the API quickly, right from the command line. Setting up a New Domain to forward to your LinkedIn is incredibly easy.
Is there more than one type of Google Analytics tracking on your links? If you combine MailChimp's Google Analytics tracking with custom UTM tracking, this could skew results in reports. He tracked seven 301 redirects before he got to the actual URL destination. If you track link clicks with virtual pageviews, then your content reports will show more pages on your site than there actually are. We recommend having a domain name dedicated to your shortener, though. But if you do a search on terms such as “creating custom short urls”, you can find many articles that go into details of how to do this. Custom URLs are easy to remember and are generated by the user itself.
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. Click the Shorten button, and voila your long URL is shortened and ready for you to use. This can break your links and disable the tracking if these are not accepted by your website. For that reason, trackers are limited to a maximum of 10,000 subtrackers. This code defines the tracking action and delays loading of the outbound link by 100 milliseconds so that Google Analytics can track the click: Insert this code in addition to the standard Google Analytics tracking code for the page.
Include a link to a survey on some of our packaging labels. This is a nice extra feature if branding is important to you or if you want to make your link easier to memorize. Configure the following framework properties to track external links: Track External: Enables external link tracking. URL shorteners are nothing new, Tiny URL has been around for 100 years, but WP.me is different in a few ways. This is also effective if you simply want to find out how effective your backlinks are. However, we don’t want to exclude any href that starts with 2 slashes because those are usually fully qualified absolute URLs that are trying to be protocol relative (typically sites that have both HTTP and HTTPS experiences). You can use click tracking tools, or Google analytics track clicks to external sites to check clicks coming from external links to your website and vice versa. 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. Examples: Netflix at one time used movi.es and BarkBox, which supplies dog treat gift packages, use the URL shortener ruv.me. Nowadays, the best URL shorteners accompany a full suite of analytic apparatuses with the goal that you cannot just divert clients by means of a more huge location; additionally track where your movement is originating from and what they're doing once they arrive. This means using JohnSmith, johnsmith, or johnSmith will all point to the same profile. This is a nice extra feature if branding is important to you or if you want to make your link easier to memorize. How Click Tracking Looks in Plain-Text Campaigns To track a click, the original URL has to be replaced with one that points to our servers and redirects to the destination URL. You'll also get detailed statistics for every link when you sign up for an account, and you're paid via PayPal for payouts as low as $5. More » Bit.do Bit.do is another great alternative that's both simple and powerful. Take time to go through the settings for the plugins as there may be some auto tweets you will want to switch off.