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. See how that one event isn’t named correctly, so it shows as undefined? Real-time Reporting Every account (even the free one) gets access to the heart and soul of our tracking system - the line item report. Twitter will use this to make your timeline better. Subscribe See why 200,000 companies worldwide love Campaign Monitor. There are no contracts or hidden fees - cancel any time.
You can shorten a link right away, although you’ll need to enter a CAPTCHA code. To add the source parameter, check the Add Source box. And if I was using Twitter.com to Tweet as I sometimes do, then I wouldn’t use one, I’d just let Twitter shorten it. It's also important to note that some countries only allow registrations on what's call the third level — .co.uk for example. If you're driving internal pay-per-click traffic and want to pass the cost per click through the tracking link, you can use the following parameter: payout To enable this feature, go to Company > Customize Application > Settings > Tracking.
If you’re logged in you can also get the shortlink for any page on WordPress.com, there’s a link under the “Blog Info” menu in your admin bar. Many web developers pass descriptive attributes in the URL to represent data hierarchies, command structures, transaction paths or session information. Keep your website safe Running a periodic check on your website's links will ensure that your website remains protected against spam and hackers. Please note: anyone with a t.co shortened link will be able to navigate to the destination URL.
Alternatively, if uppercase and lowercase letters are differentiated, then each character can represent a single digit within a number of base 62 (26 + 26 + 10). 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. The values for each entry are the same as specified in the Analytics section.
Add them with a slash before the URL in your address bar, and you're good to go. This is helpful for tracking: File Downloads Video Engagement External Link Clicks Internal Link Clicks Email Link Clicks Additionally, when setting up event tracking you will be able to add categories, actions, labels to see specific link information or high-level link click information. Unfortunately, the 140-character limit for tweets might make it difficult to get the entire video URL into the message. Advantages of Using Your Own Domain URLs: Promote your site (branding): when people retweet, your domain will fly around. WP.me is the only two-letter .me domain in the world. Copy and paste the URL you create into your web browser's address bar, then press enter.