google tag manager and its use with data layer

Create a Google Tag Manager account

You may have heard of Google Tag Manager (GTM) but maybe you have not yet ventured yourself into this Google tool. First of all, let me tell you about all the great benefits you will get from it. With GTM you will have the “power” to add and change many codes into your website without having to bother your IT Department, or having to scroll all through Internet trying to find the right and easiest way to install something on your CMS.

Well, let me show you how easy it is to create a Google Tag Manager account and how you can install it on your website.

First Steps into Google Tag Manager

Go to and you will need to log in (or sign up) with a Google Account.

Once you have gotten through this first step, you will be welcomed by a Google Tag Manager page to create/Add a New Account where you do need to set up so simple and basic information about the GTM account that you are creating to a website:

  • Account Name: the name you want to give to this Google Tag Manager account.
  • Country
  • Container Setup: for example, you can give it the URL name of your website.
  • Where to use container

Then, click onto Create!

Google Tag Manager create new account


And you will be redirected to the next step, where you are going to see the script codes and need to be implemented in the website. This is a little bothering-step if you compare to how many things you are going to be able to get done by yourself without the need of IT. With the installation of just one script you will be able to install all the rest of codes that you may need for the correct configuration of data and analysis of it, as well as other extra things to do like installing a light-box or a subscription pop-up.

Google Tag Manager container code


Once you have go to this point, it is just so easy. The first part needs to be installed as up as it can go into the <head>, and then the other one needs to be just after the opening of the <body>:

google tag manager into head html script

google tag manager into body html script


Once you have this code installed, I do recommend you to install the Google Chrome Extension of Tag Assistant by Google with this one you will be able to check if there is any problem, mistake or error with the installation, not only of Google Tag Manager, but with any other Google tool code that you will set up through GTM.

Tag Assistant Google Google Chrome Extension
For example, if when you just installed the Google Tag Manager into your website you check it with the Tag Assistant, you most likely will receive a message telling you that the installation has an error, or some sort of like this one:gtm error google tag assistant


To solve this problem you just need to publish the container of the Google Tag Manager account you just created (yes, I know, it is empty, but this is how GTM first step/installation works).

google tag manager pubblish empty container


And so just like that you are all set to start working with Google Tag Manager! 🙂