Cookie Manager Setup Guide

In this article, we will walk you through the steps to configure your cookie manager.

Updated over a week ago

How to configure your cookie manager

Jump to a section:


How the Enzuzo Cookie Manager Works

Enzuzo's cookie manager allows users to tailor their browsing experience to their liking. Users can select what services they want to allow before accepting or declining the cookie consent banner.

Your users are able to access your cookie manager from your cookie banner by clicking the link Manage Cookies. The cookie manager will then pop-up and your visitor can choose their preferences.

What are the four Cookie Categories?

The four cookie categories mentioned throughout this article—functional, analytics, marketing, and preferences—refer to different types of cookies used for website tracking and user data collection. Here's a brief rundown of each type:

Functional Cookies

These cookies are necessary for the basic functioning of a website. They enable core features such as page navigation, secure areas, and user authentication. Functional cookies typically remember user preferences, settings, and choices to provide a more personalized and seamless browsing experience.

Analytics Cookies

Analytics cookies gather information about how visitors interact with a website. They help website owners understand which pages are most popular, how long visitors spend on each page, and how often they visit. This information is used to improve the website's performance and overall user experience.

Marketing Cookies

Marketing cookies are used to track users' online behavior and interests to deliver personalized advertisements and marketing campaigns. These cookies collect data such as browsing habits, visited websites, and clicked links. Marketing cookies enable advertisers to target specific audiences and measure the effectiveness of their marketing efforts.

Preferences Cookies

Preferences cookies store information about users' choices and preferences on a website. They remember settings such as language preference, font size, region, or customized layout options. Preferences cookies ensure that users' selected preferences are maintained during subsequent visits, providing a more tailored experience.


Scanning your domain

With the Scan My Domain feature, you can scan your domain for existing scripts and categorize them within the Enzuzo App. Visit Settings > Company Details to add your "Website URL".


Adding a new service to your cookie manager

1. Click on Add Service Button

To manually add a new service. In this case, the script will not be injected into the website itself depending on whether or not the user accepts or declines the use of cookies.

2. Choose a Cookie Category

  • Functional

  • Analytics

  • Marketing

  • Preferences

3. Add the Service Name and Description

In the “Add Service” section, please specify the cookie category (Functional, Analytics, Marketing or Preferences), the name of the service and a description.

4. Add Script On Load

This is the code that will be loaded when the user has consented (either by pushing the Accept button or by default if configured as an opt-out). This code is normally run once per page refresh. To run specific code when the user consents/declines, use these two sections below. This section is used only to load the (usually) external code of the service.

Note: If you're unsure how to add a script to your page, please refer to any documentation provided by the service provider on how to locate and add the script.

Important for Shopify Stores: If you are confident that the Third-Party App you are using respects the Shopify consent API, you can safely add a blank script tag in the code snippet section. Doing so will ensure that the cookie manager allows the service category to be toggled on/off.

5. On Consent Code

Users can change their cookie preferences at any time. If you specify the Consent Code here, the service will know that the user has given consent.

6. On Decline Code

Users can change their cookie preferences at any time. By specifying the Decline Code here, you can signal that a user has declined to participate in your service.

7. Click Save

Your newly added service will now be shown on the rendered cookie manager section.


Adding an existing service to your cookie manager

1. Click on Match Existing Service Button

In this case, the cookie manager has no control over the external script but we want to specify consent or decline code to run depending on what the user does.

2. Choose a Cookie Category

  • Functional

  • Analytics

  • Marketing

  • Preferences

3. Add the Service Name and Description

In the “Add Service” section, please specify the cookie category (Functional, Analytics, Marketing or Preferences), the name of the service and a description.

4. Pattern to Match Script

You can specify a regular expression or glob pattern to match any ‘src’ scripts you have here.

5. On Consent Code

Users can change their cookie preferences at any time. If you specify the Consent Code here, the service will know that the user has given consent.

6. On Decline Code

Users can change their cookie preferences at any time. By specifying the Decline Code here, you can signal that a user has declined to participate in your service.

7. Click Save

Any existing scripts that match this pattern will now be shown on the rendered cookie manager like in the screenshot below.


Cookie Manager Text

In this section, you can edit the title and button text sections of your cookie manager.

  • Title Text

  • Description Text

  • Description Link Text​

  • Show Services Text

  • Hide Services Text

  • Service Title Text

  • Service Description Title Text


Category Text

Edit the service descriptions of your cookie manager.

Functional

  • Strictly Necessary - Title

  • Strictly Necessary - Description

Marketing

  • Marketing - Title

  • Marketing - Description

Preferences

  • Preferences - Text

  • ​Preferences - Description

Analytics

  • Analytical - Text

  • Analytical - Description


GPC Settings

What is GPC?

Global Privacy Control (GPC) is a mechanism to allow Internet users to notify businesses of their privacy preferences. Please visit https://globalprivacycontrol.org/ for more information.

Enable GPC

Enable support for the user browser’s GPC signal, if detected. Note: Additional support on the website is required. See below for details.

Website Server: In order for a website to enable GPC, a file named /.wellknown/gpc.json must be created from the base of your website with the following content:

{ "gpc": true, "lastUpdate": "2022-04-20" }

Cookie Banner: In the Cookie Manager settings, GPC support must be enabled.

Show Cookie Banner

By default, if a GPC signal is detected we will not show the cookie banner. Enabling this will show the Cookie Banner regardless.

Show Cookie Banner Once

If enabled, only show the cookie banner the first time the user has visited the website.

GPC Cookie Banner Text

If the cookie banner is shown, this is the additional text that would show along with the standard Cookie Banner text. We've created a default GPC notice, but you can edit the text if you prefer to change the language.

We detected a Global Privacy Control signal from your web browser. You will automatically be opted-out of the use of non-essential services and cookies.

GPC Cookie Banner Button

Edit the button text for the GPC cookie banner notice.

GPC Signal Detected Code

If a GPC signal is detected, the following code will automatically run.


Advanced Settings

Hide Powered by Enzuzo Logo: Toggle this on if you want to hide the Enzuzo branding on the Cookie Manager. Note: Hiding the logo is only available on a paid plan.

Show Categories Only: Toggle this section OFF to show the Categories on your Cookie Manager. All of your Services will display within the Manager and your visitors will be able to see exactly what they are consenting to.


Auto Blocking

This section is for advanced usage only. Mis-configuring this option can render your webiste unusable. Please test the configuration thoroughly in a test environment before deploying to production.

The auto blocking feature is an advanced capability that allows you to configure the cookie banner to automatically block other scripts. To enable the feature, add the auto-blocking="true" attribute to the <script src ...> tag that loads the cookie banner. Here is a test configuration. Make sure to replace YOUR_UUID_GOES_HERE with your account's UUID and look at the console logs to observe the behaviour. The example will load the cookie banner in auto blocking mode, load a test script (sends "hello world" to console), and add code for different categories.

<script auto-blocking="true" src="https://app.enzuzo.com/apps/enzuzo/static/js/__enzuzo-cookiebar.js?uuid=YOUR_UUID_GOES_HERE"></script>

<script ez-type="cb" ez-cb-id="hello" ez-cb-cat="marketing" ez-cb-desc="hello world" src="https://cdn.jsdelivr.net/gh/enzuzo/hello-world/index.js"></script>

<script ez-type="cb" ez-cb-id="functional" ez-cb-cat="functional" ez-cb-desc="a functional service">alert("fucntional from attribute");</script>

<script ez-type="cb" ez-cb-cat="marketing">alert("marketing from attribute");</script>

<script ez-type="cb" ez-cb-cat="analytics">alert("analytics from attribute");</script>

<script ez-type="cb" ez-cb-cat="preferences">alert("preferences from attribute");</script>

Attribute

Description

auto-blocking

set to "true" to enable auto-blocking

ez-type

set to “cb” to enable custom attributes

ez-cb-id

a script ID - this should be a unique ID for the script

ez-cb-cat

the script category - it should be one of "functional", "analytics", "marketing", or "preferences".

ez-cb-desc

a description for the script

ez-cb-desc-<language>

a description in a specific language (for example, ez-cb-desc-fr for French).

Did this answer your question?