Inject Google Analytics Client ID to All Your Links
We have been playing with Google Analytics Client ID and found that not many agencies have been using it.
The Client ID can be found in the GA cookie and Client ID is stored on the GA cookie of your website’s actual domain.
Google Analytics stores a unique identifier for every user who visits your site within a first-party cookie. This value, in GA parlance, is called the Client ID, and the name of the cookie is _ga.
Here’s what the entire cookie string looks like, with the actual Client ID bolded:
Client ID could be extremely useful if you are trying to track a multichannel behaviour:
User clicks on a Display ad, then clicks on an Affiliate link, then sees a Twitter ad, then searches through Google, then converts. You can capture all these separate interactions with Client ID.
Adding this simple JS code to your analytics will enable you to add client ID reference to all your urls.
var clientId = tracker.get('clientId');
var href = $("a").attr('href') + "&id=" + clientId;
Once this code is installed, you will be able to filter pages by Client ID.
Feel free to change the code when necessary or get in touch for a code customisation.
As the world of business becomes increasingly complex, finding solutions to problems in the office is becoming more crucial. Artificial intelligence (AI) technologies have stepped in to give us a helping hand, and are quickly transforming almost...read more
The most important thing to bear in mind when conducting local keyword research is that one should never translate keywords, but ideas. It is best to do keyword research for local markets and then use the keywords in the translated content....read more
Over the years, we have seen plenty of WordPress hacks and thankfully they are usually fairly easy to diagnose. This bank holiday Monday we have fought a nasty one from cashnude.com a spammy website which opens up an adult chat as a pop up, under...read more