Ever heard the saying, ”the shorter the better?” Well, I actually, made that up. After integrating, any short link which redirects to a web link that you have provided to Google through App Indexing will open automatically in your native app for your users. 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. Possibility to Archive the URLs Redirecting is not that better in elements. I like Bitly because it has a pretty interface and a login for all of the links you create.
You can easily manage links and view click statistics. Another reference to URL shortening was in 2001.[8] The first notable URL shortening service, TinyURL, was launched in 2002. Creating the External Link Tracker The last step is to send the link click event, along with the anchor text and URL, to Google Universal Analytics. Therefore it's important to keep a tack of the links to your website. Undo Undo URL Shortener @URL_Shorteners_ 4 Dec 2012 More iPad users can connect with friends to count down til their favorite movie premieres!
Use a smart link to detect language preference of visitor and automatically route to either our English content or Spanish content. 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. Members can only have one custom public profile URL at a time. We want tracking to work everywhere so I recommend using a library with robust cross-browser event handling. The general idea people have about Google Analytics is that it tells you how many vistors and pageviews you are getting, where the traffic is coming from, and what content is popular on your website.
Expand a short URL You can call this method to expand any goo.gl short URL. Twitter will use this to make your timeline better. Please note: anyone with a t.co shortened link will be able to navigate to the destination URL. Track Unique Visitors With a Professional account, we'll analyze your tracking data and tell you which visitors are unique. Change http to https and then load the resulting URL. Improper link formatting and other issues can cause problems with click tracking.
Tracking Out-going Links with Google Analytics With Google Analytics, you can also track outbound links on your website. Copying an address (URL) using a keyboard and mouse Highlight the address by moving your mouse cursor over the address bar and clicking the left mouse button once or press the F6 keyboard shortcut to get into the address bar. Masking means that your affiliate URL never becomes visible in a browser address bar. • A very simple method if you have your own website is to create a blank html page and paste the following code into the blank page (substituting your affiliate URL). Then name the html page something that makes sense for the application such as . A collaborative and customizable editorial calendar. Our agency activities and custom domain portfolio remains private and secure. Aus: url- shortener T2M - Free Custom URL Shortener | … Custom link shortener with a ton of capabilities.