Here at CoSchedule we bought cos.sc as our custom domain, and integrated it with Bit.ly. The website is just as basic it was when it launched, but it does the deed. We want tracking to work everywhere so I recommend using a library with robust cross-browser event handling.
This appends one of the two following parameters to the tracking link: url_id random_url When the url_id parameter is added to the tracking link, the numerical ID value references the ID of an additional offer URL in the offer that the affiliate can redirect traffic to: If there is more than one offer URL added in the offer, there will also be an option to select a random URL from the list. They are the building blocks of navigation and the currency of the web. Your link stats will also be public if you use this service. The benefit to Buffer is being able to keep your feed populated even when you’re too busy to post. buff.ly/0a0b0c0 Hootsuite: For the professional user, there’s Hootsuite. 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. Configure short link HTTP status codes for best SEO results.
Here’s an example I quickly put together for a bundle of Automator articles I‘ve written- . Therefore, as a Twitter marketer who needs to track link performance, you should use bit.ly. Keys can be generated in base 36, assuming 26 letters and 10 numbers. A name everyone instantly trusts when they see the URL. This example assumes that you are using the analytics.js tracking code. Hootsuite users will see their links shortened, but non-Hootsuite users can also use the shortener.
Edit short URLs or QR codes to fix broken pages any time I need it. Other Helpful Macros If you have sites that you frequently link out to or have partnerships with, you might want to roll up the click events by domain name. Tracking Links to your PDF Using Open Site Explorer you can take the full URL of your PDF and drop it directly into the search bar and click search. This sounds like a lot of work if you want to track all your outgoing links.
Restrict our employee's account access to only the campaigns I want assigned to them. You may also want to consider joining 301works, a free service from the Internet Archive that works to create a database of all shortened URL mappings. A link shortening service is a middleman, serving up a link that sits between your user and the end result. Link shortening hides the final destination, so of course spammers have latched onto link shortening like a leech. Twitter will use this to make your timeline better. 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. In general, don't remove vowels at the beginning of words, though. If you have several apps set up in Adjust, each for a different platform, then you can create two trackers in your dashboard and combine them.