UA code is the unique identifier for each Analytics account you create. Once you are sure that your WordPress site does not have Google Analytics code, go to Settings » Google Analytics. The examples use curl and OACurl to show you how to get started interacting with the API quickly, right from the command line.
To quote John Wanamaker, the father of modern advertising: So which half of your advertising is a waste of money? 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. Here’s a video tutorial on URL forwarding, and below are the two steps to setting up URL forwarding to your LinkedIn profile: 1.
There is now a “Get Shortlink” button next to your permalink when you edit or write a post, and when you click it you’ll get a popup with the beautiful link already highlighted for your copy and pasting pleasure. We have already discussed how Google treats websites with spam links.
For example: Bitly is one of the most popular link shortening services, and the one we prefer to use with CoSchedule. To learn more, read Troubleshooting Click Tracking.
Often the redirect domain name is shorter than the original one. Some websites prevent short, redirected URLs from being posted. In your Bitly account settings, you can, among other things, create a custom short domain name for your Bitly links. All of these things should be clearly stipulated for tags you will be setting up: There are a variety of approaches you can take to naming tags, categories, labels, firing rules, and more. For example, label the company logo that shows up on each email as "logo", or the main picture in an email as "main picture". As you shorten your links, Google will display them below with its long URL version, when it was created, its corresponding shortened goo.gl link and how many clicks it has received. In Tiny, click the “Stats” page button under the URL to access the statistics. Some URL shorteners offer a time-limited service, which will expire after a specified period. Subscribe See why 200,000 companies worldwide love Campaign Monitor.