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. Twitter will use this to make your timeline better. There are two rules to consider: Tracker URLs always supercede parameter values. Boom, ka-bang, you can now see your PDF's Pageviews, Unique Pageviews, Avg. We then redirect the user to the destination URL. The solution… We’ll attach a click event handler to the body element.
See how that one event isn’t named correctly, so it shows as undefined? With TinyURL, you can actually customize the end letters and numbers as an option. 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. Creating a shortened page slug is simple in WordPress. You will need to make sure you have the standard google tracking script on your page too. Another reference to URL shortening was in 2001.[8] The first notable URL shortening service, TinyURL, was launched in 2002.
These parameters are also stored by HasOffers and can be passed in affiliate conversion links via HasOffers macros. When you are editing or previewing a post, the number in the URL (on the adddress bar) is the post ID.Making use of a good URL shortener to minimize the number of characters in a link is the way to go on the web these days, especially if you want to keep all your online friends and followers happy. But to be frank, who likes long stressful stuff these days?
HootSuite also allows you to view a dashboard that tracks clicks for each shortened link shared in the management system. OneLink™ Custom tracking links are app specific, which always direct clicking users to the page of the app that is specified on the tracking link. How do you view your shortened links in HootSuite?
Another operational limitation of URL shortening services is that browsers do not resend POST bodies when a redirect is encountered. To track owned media successfully you need to create Custom Tracking Links. After you click on “Edit” you can change your slug to match whatever keywords (2-5 words are best) you are focusing on in the post. All three of these descriptive items will show up in your GA reporting interface, telling you stuff about the link users clicked on. The Google Analytics account has to be set up and configured before the tracked campaign is sent. For each time slice, shortUrlClicks and longUrlClicks should be present, but the rest may not be (e.g. if there were no clicks). In those cases, you can add the following parameters to your affiliate tracking link for your publisher to provide more data: Source & Affiliate Sub IDs Some of the most commonly used parameters are the traffic source and affiliate sub ID parameters: source aff_sub aff_sub2 aff_sub3 aff_sub4 aff_sub5 These parameters are used to store non-unique session information from the affiliate’s tracking system that they want passed back on conversion. After that, it’s up to you to decide what you need. Privacy and security[edit] A short URL obscures the target address and can be used to redirect to an unexpected site. The examples use curl and OACurl to show you how to get started interacting with the API quickly, right from the command line. To enable outbound link tracking, you need to add a little javascript to your website, and add a little code with each outgoing link that you want to track.