Don’t worry so much about the whole base64 thing though. The Apple App Site Association File is not required. 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. The macro below will allow you to grab just the hostname from the outbound URL.
Last clicked The most recent date and time someone clicked a tracked link in your campaign. Unfortunately, reports would be misleading if one or more outbound sites didn’t use Analytics. Boom, ka-bang, you can now see your PDF's Pageviews, Unique Pageviews, Avg. If you use an affiliate plugin to format your affiliate links into something like this then you will have to enable tracking of internal links as outbound links. The Apple App Site Association File is not required. Technically, Google Analytics code could be placed into the HTML of an email to try to track that data.
In order to get your domain short enough to be effective as a URL shortener, you may want to consider these tips: Removing vowels: This is an effective way to shortener your organization's name and still making it easy to understand. On Twitter and some instant-messaging services, there is a limit to the number of characters a message can carry – however, Twitter now shortens links automatically using its own URL shortening service, so there is no need to use a separate URL shortening service just to shorten URLs in a tweet.
It's also worth considering leaving the most recognizable part of your name spelled out. But we’re then moving away from on-site Analytics into more dubious territory; Google wouldn’t necessarily want to share that data. I could probably go on and on with a dozen more URL shorteners, but lets be honest, you only need one.
Bag.gy is a standard link shortener, too, with password protected link options if you want them. White labeling lets me present a positive picture of our company as clients see our agency logo when they login to create URLs. If you change your mind, you want your structure to adapt. Our CTID can be passed through any affiliate network using SubID tracking. You can also pass the CTID to affiliate networks with pixel tracking or postback tracking if the network supports it. An Enterprise edition supports multiple domains, advanced dashboard features and a customer service support plan.Business Marketing Social Media Marketing How to Shorten URLs on Twitter How to Shorten URLs on Twitter Even if you are marketing on Twitter, not everything you tweet is going to point to a blog, let alone your blog. The bad news is that if you’re posting links on Twitter, your link will automatically be shortened using Twitter’s t.co shortener. A link shortening service is a middleman, serving up a link that sits between your user and the end result. Add TinyURL to your browser's toolbar Click and drag the following link to your links toolbar. Examples of this are rickrolling, redirecting to shock sites, or to affiliate websites. For a media battle of an organization distributing content, most likely a bitly is a superior alternative.