First thing you need to do is install and activate the Google Analytics for WordPress plugin. 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.
You can use your own short URLs to point to different pages on your site. Techniques[edit] In URL shortening, every long URL is associated with a unique key, which is the part after its top-level domain name.
This is a nice extra feature if branding is important to you or if you want to make your link easier to memorize. Stay connected with USA Sport Toolbar - Watch Live games Facebook Extensions - 1. This field should be used to compare broad categories of marketing you do (or may do in the future), like emails, cpc ads, postcards, etc. 1 billion times.[12] Around that time, bit.ly and TinyURL were the most widely used URL-shortening services.[12] One service, tr.im, stopped generating short URLs in 2009, blaming a lack of revenue-generating mechanisms to cover costs and Twitter's default use of the bit.ly shortener, and questioning whether other shortening services could be profitable from URL shortening in the longer term.[13] It resumed for a time,[14] then closed. As they say, barriers can boost creativity, so people have learned to be pretty witty with 280 characters, even inventing hashtags to make the whole process easier.
Wikipedia entries on TLDs typically include information on all these restrictions in the right sidebar of each TLD's entry. It is simple to change your permalink structure, though if you have been blogging for a while you will need to redirect your old URLs to the new permalinks. How often do you get that kind of data from printed marketing? When a request is received for a shorthand link, the registry database is searched for an associated URL. It’s a free platform for scheduling and managing Tweets, like Tweetdeck.
Your domain registar account usually has URL forwarding options for the domain. Boom, ka-bang, you can now see your PDF's Pageviews, Unique Pageviews, Avg. You can always view clicks over a period of 24 hours, a month, and a custom date range. Many URL-shortener services offer the option to track how many clicks each link gets. Maybe you have the ad for your book in your sidebar, in your footer bar, and after your post content. Bitly also offers a paid version, but it's pretty pricey. Troubleshooting Consider these possibilities if you see behavior you don't expect. Hootsuite users will see their links shortened, but non-Hootsuite users can also use the shortener. More » AdF.ly AdF.ly takes an interesting approach to link shortening by offering its users the opportunity to earn money by using its service. This is similar to how UTM parameters work on the Web. An auth token is necessary in order to look up a user's history. Finally, URL shortening sites provide detailed information on the clicks a link receives, which can be simpler than setting up an equally powerful server-side analytics engine, and unlike the latter, does not require any access to the server. On other such services, using a URL shortener can allow linking to web pages which would otherwise violate this constraint. The links toolbar may not be visible in all setups and in most browsers, you can enable it in the View->Toolbars menu of your web browser. Once logged in, you should now be able shorten your URLs with your custom short URL. Many URL-shortener services offer the option to track how many clicks each link gets.