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. This point was underscored a few days ago when a popular one, tr.im, announced they were going to shut down at the end of the year. To double check, replicate the campaign and look at the tracking options you selected. Example: link UPDATE The above is for the older version of the API - ga.js.
To pass a custom transaction ID in your tracking link, append the following parameter: ad_id You or your publisher needs to insert an externally generated transaction ID value in this parameter before the click registers in HasOffers. Twitter will use this to make your timeline better. In choosing a source, think in terms of broad categories so that you can do roll-up reports for each type of email. Some countries place restrictions on who can register domains with its country TLD — though this is becoming less and less common as countries realize the revenue opportunities from selling domains worldwide. We will show you how you can enable automatic tracking of all outbound links in Google Analytics with WordPress.
With its own URL shortener, you can ensure that your long links are kept safe and secure for your visitors. The group link will then open the web pages in order with a control bar at the top of the browser. 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. Because Everyone else is Using it “600 Million links shortened in a month, 6 Billion Clicks in a Month. Then, use the tracking link in your ads and promotions.
0 or later, but the computer that is performing the move is running an earlier version of Windows, the link tracking information is lost. With TinyURL, you can also make a smaller URL that will work for any page on your site.
2. Call it ‘custom js - get client id for tracker’ 3. When creating your variable choose 'Custom JavaScript' 4. Paste in the following code:- function() { try { var trackers = ga.getAll(); var i, len; for (i = 0, len = trackers.length; i < len; i += 1) { if (trackers[i].get('trackingId') === {{ga tracking id}}) { return trackers[i].get('clientId'); } } } catch(e) {} return 'false'; } We use a constant variable named {{ga tracking id}} to reference our Google Analytics property ID. Remember to use your own {{ga tracking id}} variable within the code 5. 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 URL Shortener @URL_Shorteners_ 14 Dec 2012 More Thanks. Use Custom Short URLs in my books and newsletters to encourage trust and build brand loyalty with fans. Enter your details here, if your WordPress website is hosted on the same server as your URL shortener, enter the local path. Some offer features that go beyond a basic link shortener. Paste your Google Universal Analytics Tracking ID. Under Tracking, click the Google Analytics link tracking box. The customized bit.ly version allows you to use your own domain name for branded short links which can be easily shared on Twitter, Facebook or other social media sites. See also[edit] [edit] External links[edit] URL redirection and shortening at Curlie (based on DMOZ) Comparison of URL Shortening Services, SearchEngineLand. Additional information See the copy, hyperlink, paste, and URL definitions for further information.Welcome to TinyURL!™ Are you sick of posting URLs in emails only to have it break when sent causing the recipient to have to cut and paste it back together? Twitter will use this to make your timeline better. It can take up to 36 hours from sending a campaign to see analytics results in the MailChimp campaign report.