Back to blog
Analytics
“Eyes up, this could be a trap!” - How can Google Tag Manager influence your website
·
What is Google Tag Manager?
Google Tag Manager is a tool provided by Google (thanks, Captain Obvious!), a tag management system that only needs one headshot (single script) in the <head> of your website for installation. It has a user friendly interface, it’s web-based and lets you manage and deploy all the marketing tags you need (for tracking, analytics, 3rd party data integrations). In addition, you can add scripts with which you can manipulate the DOM. Google Tag Manager has multiple target platforms (web, iOS, Android, AMP and Server) but in this story, we will be focusing on GTM for web.
What will you be working with?
The key elements are:- tags;
- triggers;
- variables.
What kind of events* can be tracked?
First of all, let’s define events as actions that a user takes on the website. So we have the users visit (pageview), scroll on page, click on basically anything, element visibility, form submission, JavaScript Error aaand custom events. A custom event it’s something that should have some kind of logic. For example, when a user makes a purchase an event should be pushed into a global variable (like the dataLayer) that can be cached by GTM, that is the golden snitch for GTM. For more information about working with GTM, please use the backlinks.
- Custom JavaScript Variable interfere with the page load
- asked the SEO specialist if he had knowledge of any updates or new changes in the platform;
- debugged the network request to see where it ‘hangs’;
- restore the GTM version where I knew everything was fine.