Still, you can create shorter links for other uses that don’t rely on link shortening services. Here's an example of an affiliate tracking link that uses both of these types of parameters: For the above tracking link, the affiliate would provide the appropriate macros from their tracking system to replace the "AFFSUB" and "SOURCE" placeholder values.
Add X-Robots-Tag to my short links for granular control over how Google makes content available through search results. Our tracking links are one of my favorite features of Eventbrite. Google Analytics won't work if there is a space after the URL in the campaign. Well in this article, we will show you how to track links in WordPress using Google Analytics.
When you are using HootSuite, you can shorten any URL to an ow.ly or ht.ly link. Once you are set, you can now view cool stats and detailed charts of your links (e.g. unique and non-unique clicks).
For example, .in, the TLD for India, is good for names ending in the "en" or "in" sound. .es, Spain's TLD, is good for plural names ending in "-es". Use this feature to keep data longer than 30 days, send it to clients, or do custom analysis. Users can create these short links through the web interface at goo.gl, or they can programatically create them through the URL Shortener API. DyingLinks gives you control over how long you want your shortened link to be available, along with some other control and privacy features.
Although disguising of the underlying address may be desired for legitimate business or personal reasons, it is open to abuse. 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). This response will include a status code, a human readable message, and a list of error details. Some websites prevent short, redirected URLs from being posted. 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. But as Dave Winer articulated, there’s no reason we shouldn’t have a shortener ourselves, and here we are. 🙂 People are already using it. The configuration of the component overrides the link tracking configuration of the framework.