Google Tag Manager Configuration

In this article, we will describe how to load the Enzuzo cookie banner via Google Tag Manager.

Updated over a week ago

Embedding an Enzuzo cookie banner through Google Tag Manager offers numerous advantages for website administrators and marketers seeking to enhance user privacy compliance while streamlining their website management processes. By utilizing Google Tag Manager, you can efficiently deploy and control the cookie consent script without the need for direct code modifications. This approach not only simplifies the implementation process but also provides the flexibility to manage and update your cookie banner dynamically, ensuring compliance with evolving privacy regulations while maintaining a seamless user experience. Furthermore, Google Tag Manager's robust version control and debugging capabilities empower you to fine-tune your cookie banner's behavior, ensuring it functions optimally without compromising website performance or user engagement.

You can set up the Enzuzo Cookie manager via Google Tag Manager in two ways:

  • Using our Google Tag Manager Community Template

  • Manually with a custom HTML tag

Community Template

Using our Google Tag Manager Community Template allows us to integrate with other tags in your Google Tag Manager installation and ensure that they remain compliant. Download our Community Template here before starting these instructions.

We are in the process of publishing this template to the Google Community Template Gallery. Until then, follow the instructions below to install. Templates installed with this method will not automatically update. Please contact support@enzuzo.com if any issues arise.

  1. Go to the "Templates" section of your Google Tag Manager workspace, and click "New".

  2. Click "Import" in the three-dot menu in the top right, and select the file (template.tpl) that you downloaded. Then, press "Save".

  3. Go to "Tags" and click "New".

  4. Give a tag a descriptive name, select the "Enzuzo Cookie Manager" for the tag type, and set the trigger to "Consent Initialized".

  5. Click on "Tag Configuration" and fill in the value for "Enzuzo Script URL". You can find this in the Enzuzo App, under "Cookie Consent" > "Add To Website". The correct value will start with "https://app.enzuzo.com". Be sure to enter it without quotes.

  6. Finally, press "Save" on your tag, and then publish your workspace.

Third-Party Scripts

The built-in Google Tag automatically integrates with the consent settings our template controls. However, if you are loading another type of tag, such as "Custom HTML", you will need to configure it to integrate with GTM's consent settings.

First, create a "Custom Event" trigger, by going to "Triggers" > "New" > "Custom Event". In the "Event Name" field, type "enzuzo_consent_update".

When creating your custom tag, use the new "Custom Event" trigger you created. Then, click on "Advanced Settings" > "Consent Settings" > "Require additional consent for tag to fire", and then specify a category. Your tag will then fire when the user consents to the corresponding category in the Enzuzo Cookie Banner.

GTM Consent Category

Enzuzo Consent Category

ad_storage

Marketing

ad_user_data

Marketing

ad_personalization

Marketing

analytics_storage

Analytics

personalization_storage

Preferences

Manual Method

If you can't use our community template, you can also integrate the Enzuzo Cookie Manager into Google Tag Manager manually.

  1. Log into Google Tag Manager and click on "Tags" in the sidebar and then click on "New", doing so will bring up the following popup:

  2. Name your tag, something meaningful like "Cookie Banner Script Tag". Click on "Tag Configuration" to start the setup of the tag. A dialog will appear asking you to choose your tag type, click on "Custom HTML"


  3. In the Tag Configuration view, you will see a text box where you add the cookie banner embed code. Additionally, open up the "Advanced Settings" and ensure "Tag Firing Options" are set to "Once per page"


  4. Now to set up the trigger that will load the cookie banner onto your website. Click on "Triggering", click the "+" icon to create a new trigger. In the dialog that opens up name your trigger and click on "Trigger Configuration". In the trigger type dialog, select DOM Ready and ensure "All DOM Ready Events" are selected.

  5. After you have completed the triggering setting, you will be brought back to your tag configuration where it should look something like this:


  6. Click on save and you should see your new tag listed in the tag breakdown. It should look something like this:

  7. You have now finished configuring your Enzuzo cookie banner to load with Google Tag Manager. All that remains is to click on the "Submit" button in the top right of the Google Tag Manager vies to publish your new tag.

Template:

Attachment icon
Did this answer your question?