Search the DG Knowledge Base
Evidon CMP (Consent Management Platform) helps manage user consent preferences for cookies and data tracking to comply with regulations like GDPR, CCPA, and more. Google Tag Manager (GTM) is a tool for managing and deploying marketing tags on a website without modifying code. Integrating Evidon CMP with GTM ensures user consent preferences control tag behavior across your site.
Key Terms in Consent Management (Purposes):
Evidon CMP maps user consent preferences to categories that control data processing. The levels typically supported are:
Consent Level |
Description |
Global Consent |
Applies consent universally to all vendors and categories simultaneously, without individual selection options. |
Category-Level Consent |
Allows consent management at the category level (e.g., advertising, analytics). Balances simplicity and control. |
Vendor-Specific Consent |
Enables consent for individual vendors (e.g., Google, Facebook). Offers high customization but requires more user input.
|
The data layer is a key GTM component that stores and transmits structured data between the website and various Google Services. Evidon CMP uses the data layer to send consent information.
dataLayer.push('evidonConsentGiven', consentCategories:'', consentVendors:'');
The category names in the consentCategories parameter correspond to the names assigned to your category buckets within the privacy application during configuration.
The vendor names in the consentVendors parameter represent the permanent string identifiers assigned to vendors by Evidon system.
The event pushed to the data layer when user consent is provided is evidonConsentGiven. Your event triggers must monitor for this event and validate the vendors and categories listed in the consentCategories and consentVendors variables.
The Evidon Consent Management Platform (CMP) provides pre-defined callbacks that allow developers to customize their websites or applications based on user consent actions. These callbacks offer hooks to dynamically load, block, or manage technologies in alignment with user preferences, helping facilitate compliance with privacy regulations.
This document outlines the available callbacks, their purposes, and their implementation. It is essential to understand that while the CMP provides the tools, developers are responsible for ensuring proper integration and adherence to applicable laws.
Here's a detailed explanation of each callback:
Description: The priorConsentCallback is executed whenever a consent state is detected. This can happen under the following circumstances:
Parameters:
Use Case:
Note:
Always validate the consent state before enabling third-party scripts or technologies to ensure user preferences are respected.
Example:
window.evidon.priorConsentCallback = function (categories, vendors, cookies) {
if (categories.includes('Marketing')) {
console.log('Marketing consent provided. Loading marketing tags...');
loadMarketingTags();
} else {
console.log('Marketing consent not provided. Blocking related tags.');
}
};
Description:
Triggered when a user closes the consent interface (e.g., a banner or modal) without explicitly accepting or declining consent. This callback allows developers to track user behaviour and optionally re-prompt users after a specified interval.
Use Case:
Note:
The Evidon UCP Consent tool does not enforce any specific action upon closure; you must decide how to handle this scenario based on your requirements.
Example:
window.evidon.closeCallback = function () {
console.log('Consent UI closed without user action.');
promptUserForConsentLater();
};
Description:
Triggered when a user withdraws or revoke granted consent. This callback is crucial for ensuring compliance with regulations like GDPR, which require immediate action when consent is revoked.
Use Case:
While the Evidon UCP Consent tool provides this notification, it is the developer's responsibility to implement the logic for disabling third party tags or technologies and clearing cookies or stored preferences associated with third-party vendors.
Example:
window.evidon.consentWithdrawnCallback = function () {
console.log('User has withdrawn consent. Disabling all technologies.');
disableTracking();
clearConsentCookies();
};
Description:
Triggered when the user explicitly declines consent by interacting with a "Decline" button on the UI.
Use Case:
To avoid disrupting the user experience, developers can suppress further prompts using Evidon's dropSuppressionCookie function.
Example:
window.evidon.consentDeclinedCallback = function () {
console.log('User declined consent. Blocking all non-essential tags.');
disableTracking();
};
Description:
Triggered when a user opts out of all consent categories by selecting an "Opt-Out All" or "Reject All" option. This is typically applicable under opt-out regulations like CCPA.
Use Case:
This callback ensures that users can fully exercise their right to opt-out of all consent-based services. Developers must manage the associated cookies and third-party technologies.
Example:
window.evidon.consentRejectCallback = function () {
console.log('User opted out of all consent categories.');
disableAllTags();
clearCookiesAndData();
};
There are key differences between the consentWithdrawnCallback, consentDeclinedCallback, and consentRejectCallback. The following table will help you determine which callback to use.
Callback |
Trigger |
Use Case |
consentWithdrawnCallback |
User withdraws previously provided consent. |
Remove technologies and clean up data when consent is revoked. |
consentDeclinedCallback |
User explicitly declines consent using "Decline". |
Prevent non-essential technologies from running after user refusal. |
consentRejectCallback |
User opts out of all consent categories or vendors. |
Immediately disable all consent-dependent functionalities and clean data. |
While this document does not cover the complete setup of the Universal Consent Platform (UCP), we’ll guide you through enabling support for Category and Vendor consent at the Theme level in UCP. Follow these steps to configure granular consent within your theme.
Once you have enabled the new version of the dialog, you will want to verify the styles look the way you want.
This is a picture showing the correct option to enable:
Follow these steps to create a notice in UCP and configure it with the required vendors to support consent updates for various consent types, including analytics_storage, ad_storage, ad_personalization, and ad_user_data.
Additional Resources
Refer to the official Universal Consent Platform Getting Started Guide for more details on creating notices and managing vendor disclosures.
By ensuring these vendors are added to the notice, you enable granular consent updates required for compliance and advanced advertising configurations.
The guide is bifurcated into two sections: Template Implementation and GTM Recipe Implementation. While both methods are described, we strongly recommend using the template approach for simplicity and efficiency. For more detail please refer.
The Template Implementation method leverages GTM's custom templates to simplify the integration process. It allows users to configure Evidon CMP settings within a predefined framework, minimizing the need for manual coding.
Once added, the Evidon Universal Consent CMP template will be available in your workspace for further configuration and deployment
After installing the Evidon Universal Consent CMP template, follow these steps to add the Evidon Universal Consent Platform tag in GTM:
To use Evidon callbacks as optional activities within Google Tag Manager (GTM), you need to import a pre-configured GTM Template Recipe. This setup allows you to conditionally load scripts or tags based on user consent captured by Evidon CMP
Steps to Implement Evidon Callbacks with GTM Template Recipe:
I. Download the GTM Template Recipe
a. Obtain the GTM recipe JSON file from Evidon’s resources or your implementation partner.
b. Login into https://privacy.evidon.com
c. Click on “Manage” and then “Get Site Notice Tag”
d. Select “GTM Template Recipe” from the dropdown menu and further select the desired consent mode
e. Click download to download the JSON file
II. Import the Template Recipe into GTM
a. Log into GTM
i. Access your Google Tag Manager account and navigate to the desired container
b. Go to Admin > Import Container
i. Select Import Container
c. Upload the JSON file
i. Upload the GTM recipe JSON
d. Choose Workspace and Merger Options
i. Select the appropriate workspace
ii. Choose Merge (to add) or Overwrite (to replace existing tags, triggers, and variables).
iii. A new tag “Evidon Consent Tag” has been generated
e. Update the logic in Callbacks:
i. Open “Evidon Consent Tag” in edit mode
ii. In custom HTML, update your code in the given placeholders
The template implementation method ensures consistency, reduces manual errors, and simplifies future updates. This is especially beneficial for organizations managing complex CMP configurations.
The template approach is recommended due to its ease of use, lower risk of errors, and maintainability. This approach also ensures compliance with Evidon and Google’s latest updates.
The GTM Recipe Implementation method involves importing a pre-configured GTM container that includes tags, triggers, and variables required for Evidon CMP integration. This method is suitable for users familiar with GTM and requires a higher degree of manual configuration.
Once complete, your triggers are set up. The final step is to assign the correct load rules to the tags. To support category consent on your tags you need to set up the tags to have the correct type of category consent assigned to them.
To support vendor consent on your tags you need to set up the tags to have the correct vendor consent trigger assigned to them.
Remember, triggers on a tag act as an “OR” condition, so if either of them execute the tag will fire. Once you have set up the tag and saved it, it should look something like the following:
This document provides technical guidance for implementing the Evidon Consent Management Platform (CMP). It is the responsibility of the user to ensure compliance with applicable data protection laws and regulations, including but not limited to the GDPR, CCPA, or other regional privacy frameworks. Evidon offers tools and resources to support compliance but assumes no liability for errors in implementation or misuse of this documentation. Users are strongly advised to consult their legal team to confirm that all implementations meet relevant legal and regulatory requirements.
Search our DG Forum to find answers to questions asked by other DG users.
No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.