What is google tag manager
Google Tag Manager is a web-based platform and a powerful marketing tool. Many tags, such as the Facebook pixel code, Linkedin monitoring code, GA, Google search console, and others, must be implemented on websites in order to analyse and understand user behaviour and how users communicate with websites or mobile apps.
With Google Tag Manager, you can manage and deploy marketing tags (code snippets or pixels) on your website or mobile apps without having to touch your source code. It syncs data from one data source with data from another data source.
Why use Google Tag Manager?
Google analytics is a great tool for understanding user behavior, journey, and how users interact with your website or mobile app, however there are some limitations to data collection with Google analytics alone; however, with Google tag manager, you can collect even more detailed data from a variety of sources and platforms.
Without requiring developer assistance or coding skills, you can build custom tags and events to track and monitor user activity on your website or mobile apps.
How to use Google Tag Manager
Tags, Triggers, and Variables are the three components of Google Tag Manager. Let me explain to you what they are and how they work together.
What is Tag in Google Tag Manager?
Tags are code segments created by marketing, analytics, and support vendors to assist you in integrating into your website or mobile apps without having to incorporate them directly on the website or mobile apps.
Many third-party tags are compatible with Google Tag Manager, and you can also write your own custom tags and you can submit custom tags template to the community as well for others to use it.
What are Triggers?
Triggers records to be added to your website or mobile applications for specific types of events that you want to track and monitor, such as form submissions, licks on the bottom, video playback, page views, and so on.
Triggers, in simple terms, instruct tags to fire when a particular event is detected. In order for a tag to fire, it must have at least one trigger.
What is Variable?
Variable is a placeholder for a value that will change. These are the additional conditions that give a tag additional information it needs to fire.
For example: When a user purchased more than one product, GTM will evaluate a goal and the remarketing trigger will fire
A variable is a placeholder for a changing value. These are the extra requirements that provide a tag with the details it requires to shoot.
For instance, if a user buys several products, GTM will evaluate a goal and the remarketing trigger will fire.
What is google tag manager container
Containers are a collection of tags, triggers, and variables that define the rules for a specific domain. If the containers are in place, you can handle, add, change, delete, and edit tags on your website or mobile apps without having to touch the source code.
How to Setup Google Tag Manager
In-order to set up a Google tag manager, login into your tag manager account.
- Click on the create account
- Account setup: Add account name, you can give your website or business name as an account name and select the country.
- Container Setup: Give a container name – If you want to track your website or mobile app or sub-domain
- Select target platform – where you want to implement this code like website, iOS, Android, AMP and Server. Select one based on your project.
- Click on create button
- Accept “Google Tag Manager Terms of Service Agreement”
- It will take you to the tag manager account and you see a Install google tag manager pop-up window with code.
Install Google Tag Manager Code on the website
- Copy the first code and paste it as high as possible in the page’s head> section
- Copy the second code and paste it right after the first body> tag.
- Click the “OK” button.
How to check if Google Tag Manager is Working?
If you’ve placed the Google Tag Manager code on your website, it’s important to double-check that it’s working properly. This can be accomplished in a variety of ways.
1. Check the website’s source code
- Visit your website
- If you right-click on your website or press CTRL + U, your website’s source code will open.
- Do a Ctrl + F (search), it will bring up your search feature within your browser
- Within search function, type gtm.js or your your gtm id (id=XXXXXX)
- If you find the code gtm.js or your gtm id number then it is installed properly.
2. Use Google Tag Assistant (Chrome extension)
Tag Assistant is a popular Chrome extension that can help you test and debug your implementation. It is mostly used for Google tag manager troubleshooting, as well as Google Ads, Analytics, and doubleclick implementation.
- Got to chrome web store and download google tag Tag Assistant extensions (Here is the link to download)
- Refresh the page after enabling the tag assistant.
- Open your website in same chrome browser
- Select the tag assistant extension by clicking on it.
- Look at the extension’s status; if it’s yellow or red, there’s a problem; if it’s orange, everything is good.
Advantages of using Google Tag Manager:
- Boost site speed: Boost site speed: Since you’ll be using Google Tag Manager to apply all of the tags on your website or mobile apps, the speed of your site won’t be affected.
- You don’t need any technical knowledge to use tags on your website.
- It will assist you in tracking more than just page views.
- Manage all the tracking assets at one place
- Integration: it integrates with most of the platforms, It enables one to have a single place to store all tags at one place, easy to manage and update all the tags.
- It allows to have multiple triggers for specific tags