---
title: "Install with Google Tag Manager"
description: "Find CookieBeam in the Community Template Gallery, configure your Banner ID, and publish the consent tag."
url: "https://cookiebeam.com/docs/install/google-tag-manager"
lang: "en"
---

# Install with Google Tag Manager

Find CookieBeam in the Community Template Gallery, configure your Banner ID, and publish the consent tag.

Use the approved **CookieBeam Consent Mode** template from the Google Tag Manager Community Template Gallery in your GTM web container.

## Add the template from the gallery

1. Open the correct GTM web container and workspace.
2. In the left navigation, select **Templates**.
3. Under **Tag Templates**, select **Search Gallery** and search for **CookieBeam**.
4. Select **CookieBeam Consent Mode**, review its requested permissions, and click **Add to workspace**.

You can also [view CookieBeam in the Community Template Gallery](https://tagmanager.google.com/gallery/#/owners/cookiebeam/templates/cookiebeam-gtm). Review future template updates through GTM's normal template update flow.

## Configure the tag

1. Go to **Tags → New → Tag Configuration**.
2. Choose **CookieBeam Consent Mode** from your custom templates.
3. Paste the public Banner ID shown on the banner's CookieBeam installation page.
4. Select **Consent Initialization – All Pages** as the trigger.
5. Save the tag.

Configure the consent settings for each downstream tag. Consent Mode can allow cookieless requests while consent is denied; it does not automatically block every tag. Hardcoded non-essential scripts outside GTM may still need inert markup. See [script blocking](https://cookiebeam.com/docs/configure/blocking).

## Preview and publish

Use GTM Preview before publishing. Test a fresh visitor session, acceptance, rejection, and withdrawal. Check the consent state reported for downstream tags and the requests they send. Then submit and publish the container version.

## Alternative: import a container file

If you cannot use the gallery, the CookieBeam installation page offers a web container JSON download with a prefilled consent tag. Use **Admin → Import Container**, choose the file and workspace, then select **Merge** and review the import preview. Verify the banner ID and **Consent Initialization – All Pages** trigger before publishing.

Use either the gallery setup or this fallback to avoid duplicate consent tags. The JSON download is a container file, so it belongs in **Import Container**, not the template editor's import menu. Manual imports need to be updated when a new template version is released.
