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. Once you are set, you can now view cool stats and detailed charts of your links (e.g. unique and non-unique clicks). I can even include retargeting (remarketing) in the same link. With that said, if you do need to track your URLs, or you want alternative ways to post there are plenty of ways to do it: Bit.ly: Probably the most popular URL shortener for Twitter because it was one of the first to let you track your tiny URLs.
Clicking on it will show you a list of outgoing URL(s) users clicked on your website. It is reserved for campaigns using paid keywords.
Google then provides information you'll need later, such as a client ID and a client secret. Undo Undo Shorten URL @ShortenURL 17 Jul 2011 More Statistics for Sunday, July 17, 2011 Thanks. Check out our review of this fantastic tool to see how it works. Link shortening service vb.ly was shut down back in 2010 by Libya, which leads to the problematic fact of link shortening: you depend upon a third-party service to deliver visitors through your shortened links. 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. Not only is this good for link shortening, but it is also good for SEO.
In general, don't remove vowels at the beginning of words, though. Google Analytics does not track outbound links by default. First thing you need to do is install and activate the Google Analytics for WordPress plugin.
The links toolbar may not be visible in all setups and in most browsers, you can enable it in the View->Toolbars menu of your web browser. Therefore, anyone who has the shortened link can access to all the information regarding that link by adding + at the end of the google link. This service is provided without warranty of any kind.Overview The Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. Users are warned with the error message below when clicking on potentially harmful URLs. If the URL of a site you manage has been flagged, please see this help page about flagged URLs for more information.Viral videos are a great way to market your business, and YouTube is the most widely used video-sharing service on the Web. Although disguising of the underlying address may be desired for legitimate business or personal reasons, it is open to abuse. Twitter will use this to make your timeline better. Links are public, so anyone is free to pass that link to others.