How to configure Google Tag Manager ?

Written by:  Photo de profil de Lucas Rollin Lucas Rollin

Updated: Wednesday, July 26, 2023

Google Tag Manager offers you the possibility of integrating tagging plans on your website while reducing dependency on a developer or webmaster. This doesn’t mean you won’t need developers, but you will LESS need them.

Without a tag management tool like Google Tag Manager, the integration of a tagging plan has to be done by developers. Developers don’t have a global view of what marketing or other departments in the company are going to do with the data they collect, so this would require even more communication.

Thanks to Google Tag Manager, data and marketing teams have much more control over data collection, even if certain configurations remain in the hands of developers.

Successful tracking depends above all on good communication between you and your developers, to ensure that user behavior on your webwebsite is accurately tracked.

Organizing your company in Google Tag Manager

Your Google Account gives you free access to Google Tag Manager. Then, within Google Tag Manager, you have this notion of an account that represents your company, and within an account, you can have one or more containers. It’s up to you to organize these accounts and containers as you see fit.

For example, you can create an account for your company and then a container for each webwebsite.

Organise your company on Google Tag Manager
Organise your company on Google Tag Manager

Create an account on Google Tag Manager

Go to Google Tag Manager, then click on the Create an account button.

Create an account on Google Tag Manager
Create an account on Google Tag Manager

Then add your company information and give your container a name.

The target platform selected is Web in this example, as we’ll be tracking a webwebsite. If you want to track another platform, select the one that suits your needs.

Enter information about your company and your first container
Enter information about your company and your first container

Create a container on Google Tag Manager

Then click Create and accept the Google Tag Manager terms of use.

Once you’ve followed the steps above, you’ll have created a Google Tag Manager account and a container.

If, in the future, you wish to add a new container within the same account, go to Admin, then click on the + button in the CONTENT section.

Manage access rights

If you wish to give access to team members or partners, there are two levels of access to consider:

  • account-level access
  • container-level access

Account-level access

To manage access at account level, go to Admin > ACCOUNT > User management.

Account-level user manager in Google Tag Manager
Account-level user manager in Google Tag Manager

Vous voyez ensuite votre accès et vous pouvez cliquer sur l’icône + en haut à gauche pour ajouter un nouvel utilisateur.

Account-level permissions in Google Tag Manager
Google Tag Manager account permissions
AdministratorThe administrator will be able to create and modify containers and change the permissions of other account users.
UserThe user will only be able to view account information.

Container-level access

To manage access at container level, you can do so in the previous section, or go to Admin > CONTAINER > User management.

Container-level user management in Google Tag Manager
Container-level user management in Google Tag Manager

At the container level, you have 4 different levels of access:

Container-level permissions in Google Tag Manager
Container-level permissions in Google Tag Manager
PublishUsers will be able to publish container versions. That is, install tags on your website.
ApproveUsers will be able to create versions but not publish them. They will therefore be able to propose markup without making it active on the site.
EditUsers will be able to modify the tag but not create a version or publish it.
ReadUsers will be able to read the markup.

Get the GTM tracking code

To obtain the tracking code, go to your Workspace and click on your container identifier GTM-XXXXXXX.

Google Tag Manager container ID
Google Tag Manager container ID

A popup window will then appear, prompting you to copy the first code and install it on your website.

Container code to install on your website
Container code to install on your website

Install the tracking code on your website

On your website, you need to install the code on all pages between the <head> tags.

<head>

		<!-- Google Tag Manager -->
		<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
		new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
		j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
		'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
		})(window,document,'script','dataLayer','GTM-TRSRM3PT');</script>
		<!-- End Google Tag Manager -->

</head>