When clicking the link, Sailthru tracks the click and quickly redirects the user to the applicable page on your site, example.com/item/123. 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. 2. Call it ‘custom js - get client id for tracker’ 3. When creating your variable choose 'Custom JavaScript' 4. Paste in the following code:- function() { try { var trackers = ga.getAll(); var i, len; for (i = 0, len = trackers.length; i < len; i += 1) { if (trackers[i].get('trackingId') === {{ga tracking id}}) { return trackers[i].get('clientId'); } } } catch(e) {} return 'false'; } We use a constant variable named {{ga tracking id}} to reference our Google Analytics property ID. Remember to use your own {{ga tracking id}} variable within the code 5.
You can always view clicks over a period of 24 hours, a month, and a custom date range. I can even include retargeting (remarketing) in the same link. WordPress links have the structure they do, which is longer, because they’re meant to be permanent and portable. (And of course friendly to search engines.) Even if you weren’t using WordPress, the links contain no arbitrary IDs or other platform-specific implementation cruft so they should be trivial to serve from any system, even if you don’t use WordPress in the future. Launch and use Now that you're all set up, you're ready to use your new URL shortener.
But now I have the option to make special mistake-proof short links for print purposes. Google Analytics does not track outbound links by default. Bitly assigns a unique key, in this case UOLsVl, for the URL that you supplied, saves it in their database, and returns the shorter URL that you can then use to access the same web page. Understand who my readers are, which books are getting clicks and purchases and which marketing channel is working best. See how that one event isn’t named correctly, so it shows as undefined? AdFly: Another interesting shortener is AdFly, because it allows you to monetize on your URL shortener.
Another simple one, you just paste it in and go. goo.gl/0a0b0c0 Then there are the ones that people hook up to autofeed into their Twitter accounts, and most of those come with their own shorteners. When a user clicks on a link that is being listened to, Google Tag Manager fires off a gtm.linkClick event. Personally, I use Hootsuite for all of my Twitter’ing so I don’t have the need to go out and shorten it separately.
More » Is.gd Is.gd provides one of the simplest URL shortening experiences by giving you nothing more than a field to input your long link so you can instantly transform into a shorter one. A good structure accommodates future changes or alterations. Having a link shortener protects users from malicious sites that engage in spreading malware, phishing attacks, and other harmful activity. Setting the transport method to 'beacon' lets the hit be sent * using 'navigator.sendBeacon' in browser that support it. */ var trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitCallback': function(){document.location = url;} }); } You'll also need to add (or modify) the onclick attribute to your links. Just a Few of the Available Sites I won’t claim to be familiar with all the possible URL shortening sites you could use. Can generate transcribable short links in printed brochures for publicity events. Boom, ka-bang, you can now see your PDF's Pageviews, Unique Pageviews, Avg. Quotas By default, your registered project gets 1,000,000 requests per day for the URL Shortener API (see the Developers console for more details).