Finally, Event Tracking employs an object-oriented model that you can use to collect and classify different types of interaction with your web page objects. 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. Another consideration is that some countries also restrict what content can be used their TLDs, so if you intend in shortening content that might be in violation of these laws, you'll need to find another TLD. The easiest, most flexible way to organize your content pipeline. This method is safe and would definitely save you a lot of stress.
They enable campaigns with limited text space, such as SMS campaigns. Not all redirection is treated equally; the redirection instruction sent to a browser can contain in its header the HTTP status 301 (permanent redirect), 302, or 307 (temporary redirect). Here's how to determine which of those options to use: If the request requires authorization (such as a request for an individual's private data), then the application must provide an OAuth 2.
It allows for custom domains so you can brand your shortened link. You can use it for one simple link and shorten as usual, or you can shorten a group of links into one shortened link. Instead it is simply a pointer that forwards traffic to a different address. Automatically route users to the location they're most likely to purchase the products you're promoting while gathering deep insights into your marketing campaigns. While your link is legitimate, the link shortening service you’re using could cause it to be blocked.
Join 250,000 in-the-know marketers and get the latest marketing tips, tactics, and news right in your inbox. The feedback you provide will help us show you more relevant content in the future.
Set your own link expiration dates (great for limited time offers). Example: South Park Studios uses cart.mn to recreate, in a shortened form, the name of one of its most well known characters. Once Twitter (and other social media) took off and introduced the 140-character limit, that shortened link became even more important. Determines unique and non-unique click distribution. Undo Undo Shorten URL @ShortenURL 21 May 2011 More Version 0. That in mind, if it bothers you to have public analytics on your short links, don't use goo.gl! In fact, each of Instagram’s 800 million user accounts could post one photo every single minute for about 42 and a half years before they have to worry about that limit being hit. Many extensions are available from companies you already use for domain registration — such as Hover. Here, we'll go over how you can customize an affiliate tracking link to your needs using HasOffers parameters. We introduced parameters, values, macros, and how they fit into your workflow in our article on Parameters & Macros in HasOffers. All you need to do is register the domain and make a few changes to the domain configuration. Another privacy problem is that many services' shortened URL format is small enough that it is vulnerable to brute-force search.