Creating a cookie in Google Tag Manager is very easy.
- Create a custom HTML tag
- Insert the cookie script below and update the following values to suit your needs:
- Name (name of the cookie, which can be anything you want)
- Value (the value the cookie should hold)
- Days (how many days until the cookie expires)
- Create the trigger i.e. when should the cookie be created
- Publish and you’re done. Super Easy!
Code to create a cookie
Continue reading “Google Tag Manager: How to create a cookie”
A common scenario is for a new website to be built on a test staging server that requires tracking to be implemented. Ideally, you’d want to set all the tracking up on the test site but you don’t want this data going into the main Google Analytics Property since it’s not real data but you do want to be sure all of the tracking is in place and works correctly.
The best way I’ve found to do this is to:
Continue reading “Should you set Google Analytics up on the staging site?”
In this video I’ll quickly run through how you install Google Tag Manager onto a website:
Continue reading “How to install Google Tag Manager Video”
A common scenario is migrating clients from hardcoded Google Analytics tracking to Google Tag Manager. In this post, I will explain how to switch over without any loss of data at all.
Continue reading “How to migrate to Google Tag Manager without any loss of data”
If you have definitely turned on the form submit and click listeners in Google Tag Manager but the listeners are not working when they should be then it’s possible that poor JQuery implementation is obstructing Google Tag Manager.
To fix that you can add a GTM Custom HTML tag with the script below to run on the pages where the listeners are not working:
Continue reading “Google Tag Manager listeners not working”
Personally, I implement this on content sites since a visitors is often looking for one article & even if the visitor is completely satisfied with the article, Google Analytics will record the visitor as a bounce if they do not navigate to another page.
I do not implement this on any ecommerce sites since the goal of these sites is never to visit just one page and a single page view, in my opinion, should be classed as a bounce.
Continue reading “How to change bounce rate with Google Tag Manager”