All Collections
Integrations
Other
Cookie control using CookieBot and Google Tag Manager
Cookie control using CookieBot and Google Tag Manager

If you want to implement a cookie banner on your web shop, here's how to do it using Google Tag Manager.

Oskar Smith avatar
Written by Oskar Smith
Updated over a week ago

Pre-requisites

How to set-up CookieBot

1 - Set your Toggle web shop domain in CookieBot

Markup 2021-10-13 at 18.51.34.png

2 - Grab your CookieBot Domain Group ID from the "Your Scripts" tab

Markup 2021-10-13 at 18.52.55.png

3 - Head over into Google Tag Manager. CookieBot have a full article on what to do next over on their site however, read on for a summation of the steps.

4 - Within Tag Manager click to add a New Tag and location the CookieBot template under the Community Templates section like this:

5 - Paste in your CookieBot Domain Group ID in the field

Markup 2021-10-13 at 18.55.35.png

6 - Under the Triggering section (shown in the short video above), set the trigger as "Consent initialization - All pages"

7 - Give the Tag a name and click Save

8 - Publish your changes using the Submit > Publish button in Tag Manager

You're done! However, you can read more about customisation options over on the CookieBot website.

What does it look like?

You can customise the look and feel of your banner within CookieBot. However, the default "skin" will look like this:

FAQs

Q) Doesn't Tag Manager itself set a cookie?

A) Google has built-in consent functionality that is compatible with CookieBot. You can read more about it here >

Q) I don't use CookieBot. Can I use another Consent Management Platform (CMP)?

A) Yes. The integration steps may vary slightly, but check Google's own list of supported CMPs here >

Did this answer your question?