---
title: "Analytics and cookie consent | two.do"
description: "Connecting CMS3, Google Tag Manager and visitor choices."
lang: "en-GB"
---

TwoDo CMS3 · guides

# Analytics and cookie consent

Connecting CMS3, Google Tag Manager and visitor choices.

[CMS3 guides](https://two.do/en/cms/cms3)

## In this guide

[1. List the services used](https://two.do/en/cms/cms3/analytics-and-cookie-consent#step-1)[2. Set up the container and tags](https://two.do/en/cms/cms3/analytics-and-cookie-consent#step-2)[3. Connect GTM and the cookie banner](https://two.do/en/cms/cms3/analytics-and-cookie-consent#step-3)[4. Test consent behaviour](https://two.do/en/cms/cms3/analytics-and-cookie-consent#step-4)[5. Check the configuration](https://two.do/en/cms/cms3/analytics-and-cookie-consent#step-5)

## 1\. List the services used

List the services you want to use, their purposes and the data they store. Use this list to prepare the consent categories and visitor information.

## 2\. Set up the container and tags

Prepare a web container in Google Tag Manager and enable its consent overview. Give each tag the appropriate triggers and consent requirements according to the provider’s current documentation. Do not automatically combine every analytics and advertising purpose.

![Website container in Google Tag Manager](https://two.do/_media/8a4dbde1f64dee79ea6c10111fc8927b3df94df0d2d4b3b1f62ce977cdb4a18a)

Website container in Google Tag Manager

![Opening the container settings](https://two.do/_media/523de16510066da737962bb8e34f67187f1fea582025198268eece4a064eeae0)

Opening the container settings

![Enabling the container’s consent overview](https://two.do/_media/2418fc204e89218dc07b641dbf03c8f17f70896c092c998d6fb099b99a82d451)

Enabling the container’s consent overview

![Selecting the Custom Event trigger type](https://two.do/_media/4f9a9163810f0783a2674a8e5e5d18a7f63cb38363d38dba36da701f6c852895)

Selecting the Custom Event trigger type

![Configuring a trigger for consent changes](https://two.do/_media/62334d21ea1e969d96c2b7594ce7ce959677ca53a77cc708d1b94020633d020d)

Configuring a trigger for consent changes

![Google Tag and its identifier](https://two.do/_media/435dcccd8331b6af84fb422dac5a706e451e121ab8b8b6fd6f959496aad8e62c)

Google Tag and its identifier

![Permissions in Consent Settings](https://two.do/_media/813ff6797981039a5bcdac903e0af3476ab6a06bdbda85288ca96627e82c277b)

Permissions in Consent Settings

![Assigning triggers to a tag](https://two.do/_media/eae0d1b98cae3780f746fea6aea9c32273f0727c6bdc46ab639ee1e3b08afd02)

Assigning triggers to a tag

![Tag overview and the GTM container identifier](https://two.do/_media/9fe2336dfa0a3eee3005b8c4ff21ba32cd2200fc242d7f8eba4f02a453dd7429)

Tag overview and the GTM container identifier

![Consent requirements for individual tags](https://two.do/_media/b8efe1a4cf980a271f5e59fadbfc4a661433694af7ed56eae693a14e0ba8fe47)

Consent requirements for individual tags

## 3\. Connect GTM and the cookie banner

In CMS3, open Tools → Integrations and enter GTM-XXXXXXX in the Google Tag Manager field. In Components, open Cookie consent and fill in actual categories, providers, purposes and storage information. Save and publish the appropriate version for the site.

![Container identifier in Tools → Integrations](https://two.do/_media/52e1ebbb00382680c666d8e2722a9d74cd8af291bc6de2fe852a7bda0f6dce43)

Container identifier in Tools → Integrations

![Categories, providers and purposes in the cookie banner component](https://two.do/_media/181b842cf3346ed670af370ddf202739e09cb637fb56f05614af984c9d0e0617)

Categories, providers and purposes in the cookie banner component

![Applying the cookie banner across the website](https://two.do/_media/0946ae120b970f89a77b2358d7fe4df0640a110eb8b1765b0fd30caa7ad50f3e)

Applying the cookie banner across the website

![Consent choices on the public website](https://two.do/_media/e9d896319f6bcab31cb766030b23276ec50d7b9a07d01b026275607a7b561423)

Consent choices on the public website

## 4\. Test consent behaviour

In a fresh browser, test the initial state, rejection, each category and consent withdrawal. Use network requests and GTM preview to check which tags run. Compare stored cookies with their descriptions in the banner.

![Comparing stored cookies with the banner information](https://two.do/_media/aa4a3db63be7b3a38aadfcacdf2cf0a42c5e2ae56d2275324d1bbfcc8b5d616d)

Comparing stored cookies with the banner information

## 5\. Check the configuration

If something fails, check the container ID, published component version, trigger/tag connections and consent settings. Behaviour depends on the mode and third parties; ask the project administrator about changes to a specific measurement setup.

## More guides

[Website basics Sign in, build a page, add components and publish in CMS3. Open guide](https://two.do/en/cms/cms3/website-basics)

[Components and inheritance Use building blocks and manage repeated content from one place. Open guide](https://two.do/en/cms/cms3/components-and-inheritance)

[Layouts and repeated sections Combine components into a block you can use across several pages. Open guide](https://two.do/en/cms/cms3/layouts-and-repeated-sections)
