How to add Google Tag Manager

With Google Tag Manager (GTM) you can manage and deploy 3rd-party code snippets (GA, Google Ads, etc.) on your website —called tags— without having to modify the source code. In this article, we'll show you how to connect to GTM.

In this article

Installing the Google Tag Manager integration

Optional: Cookie Module - GTM Consent Mode


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

Installing the Google Tag Manager integration

  • Navigate to the project dashboard where you want to add Google Tag Manager

  • Select Integrations from the sidebar.

  • Click the Connect button.

  • Fill in your GTM ID in the token field.

Note: The Google Tag Manager ID is the same as the Container ID and has a GTM-XXXXXXX format.

Remember to publish all pages after adding the Google Tag Manager to your project.

  • Congratulations! You're all set up.

Optional: Cookie Module - GTM Consent Mode

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.

Below you will find the required steps.

Brief Explanation

By default, all Google Tag Manager's consent options are allowed. Only consent options that are added to your cookie groups will be blocked.

When the cookie modal gets accepted, all the accepted groups will be communicated to Google Tag Manager to return the corresponding tags.

Enabling Consent Mode in Google Tag Manager

  • Navigate to the Google Tag Manager Container for your SiteManager website.
  • Go to the Admin Settings and select Container Settings.
  • Enable consent overview under Additional Settings.

Connecting SiteManager Cookie Groups to Google Tag Manager

  • Log in to your SiteManager project.
  • Navigate to the Developer Settings in the top navigation and select Cookie Settings.
  • Click the pencil of the group you would like to connect to Google Tag Manager.

A new option called, GTM Consent will be visible if Google Tag Manager was successfully connected to your project.

  • Set the group(s) according to your preferences and Save changes.

Important: By default, Google Tag Manager is added as a Marketing Cookie. This is to prevent cookies being accepted without the necessary cookie setup.

If you want to make sure all Google Tag Manager Consents are sent, remove Google Tag Manager from the Marketing group and add this to the Strictly Necessary group.


If you want to read more about Google Tag Manager's Consent Mode, you can check out Google's blog article.