Skip to content
English
  • There are no suggestions because the search field is empty.

How to add Google Tag Manager

In this article you'll learn how to install the Google Tag Manager as well how to setup server-side tagging

Note:
You need a Google account to set up a Google Tag Manager account. 

Prerequisites

  • Cookie Module
  • Container ID

Check before continuing

Before we can setup Google Tag Manager, be sure to have the Cookie Module installed, without this module Google Tag Manager will not work properly!

We will first need to navigate to the General Settings > Modules

general_settings

general_settings_modules

In the modules overview the Cookie Module can be found. Click Add 

How to find the Container ID

We will also need the Container ID of the Google Tag Manager we want to add. To find this ID, we navigate to tagmanager.google.com

Installing the Google Tag Manager integration

We can navigate to Integrations, we can find the Google Tag Manager integration

general_settings_integrations

In the integrations overview we can find the Google Tag Manager integration . Click Install.

After installing, we can click the Connect button.

The Connect button will open a popup, in this popup we can paste our Container ID.

The other two fields are optional. Later in this article this will be explained how we can use these fields to configure Server-side Tagging.

After adding our Container ID you can click Connect to finish the installation.


We can then click Edit Project to open our project. In the navigation > Developer > Cookie Settings we can find our newly added Google Tag Manager

If you can't find Google Tag Manager in a cookie group, it can be added by clicking on the "+" icon. 

This will open a popup, the first dropdown, Type. In this dropdown we can find Google Tag Manager.

When selecting Google Tag Manager we can click Add Script.

After installation & setup of the Google Tag Manager integration, it is recommended to save all the layouts & publish all pages.

Server-side tagging

In the popup there are two fields:

  • Custom Include Script Head
  • Custom Include Script Body

These fields can be needed when you are using a server-side tagging platform.

Optional: GTM Consent Mode v2

When adding scripts to your SiteManager website through Google Tag Manager, you want to make sure that these scripts are GDPR complaint. We added support Google Tag Manager's Consent Mode in our Cookie Module.

View our detailed explanation on how to use Google Consent Mode here.