Customerlabs CDP Documentation

You are here:

Google Consent For Ads  Platform Without Banners

We have all seen in websites a cookie banner that pops in the top of the page and seeks our consent to enhance the browsing experience and collects our data for marketing purposes. Google has made an announcement that without implementing the google consents the companies can’t target the customers for their marketing purpose. To obtain consent from users regarding the usage of their data for marketing purposes, especially in compliance with regulations like  google consent when you do not have a cookie banner or similar consent mechanism, you typically need to implement an explicit consent mechanism. 

Here’s how you can approach this!

Step1: Access Customerlabs Integration Settings

CustomerLabs → Destinations → Custom Integration

Accessing the Customerlabs Integration Settings

Step2: Enable Custom Integration

Enable the javascript integration as given in the image below

Enabling the Customerlabs Integration

Step3: Labels And Insert Custom Integration Code:

Name your custom integration code as “Google Consent” and paste the provided code snippet into the designated text box, As given in the image below and the code is attached below for your reference

Custom Integration Code Part

Copy this code and paste in the script field

(function() {
((window.CLabsgbVar || {}).generalProps || {}).uid && _cl.trackConsent({
ad_storage: ‘denied’,
ad_user_data: ‘denied’,
ad_personalization: ‘denied’,
analytics_storage: ‘denied’,
functionality_storage: ‘denied’,
personalization_storage: ‘denied’,
security_storage: ‘denied’
});
}());

These are the following consent mode parameters which are mandatory to obtain or deny the consent from the users as per the requirements. The consent should be denied by default Here is an explanation for the consents types which you are going to provide.  The “ad_storage”enables storage such as cookies related to advertising, The “ad_user_data”sets consent for sending user data related to advertising to Google. The “ad_personalization”sets consent for personalized advertising, the “analytics_storage” enables storage such as cookies related to analytics e.g. visit duration.  The “functionality_storage”enables storage that supports the functionality of the website or app e.g. language settings. The “personalization_storage”enables storage related to personalization e.g. video recommendations. The “security_storage”enables storage related to security such as authentication functionality, fraud prevention, and other user protection. 

Step 4: Save the Custom Integration Code

After pasting the code in the text box then save the custom integration configuration (Google Consent). It ensures that the code runs on your website.

Save the code

Step 5: Setup the trigger path

Here we will be  setting up the trigger path where we will be listing  the URLs where you want to deny consent access.

Trigger Path Setup

For Example:

https://example.com/contactus

https://example.com/privacypolicy

https://example.com/termsofuse

You can list your Website URL which you would like to trigger for the not to deny consent access, and with the help of add new firing rule you can add the multiple URL where you would like to deny consent access.

Trigger Setup

Step 6: To test the consent cookie on your website

To verify the cookies consent on your website here are the steps to be followed,

6.1 Load your website in a web browser.

6.2 Right-click and choose the inspect element option.

6.3 Then Select cookies from the application section.

Cookies Consent Verification

6.4 Select the page URL which you would like to view the consent access.

6.6. Search for your cookie name as “User Consent”

Search as "User Consent"

6.7 At the bottom of the page you will notice the cookies consent permission has been denied.

Denied Consent Permission

Using the above approach in the absence of cookie banners, the  marketing team respects the users privacy and can effectively manage the user data for insightful marketing purposes.

You want to explore? Need a hand – happy to help, always! 

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?
Need help?
Table of Contents
CustomerLabs gives freedom, flexibility and wings to digital marketers.
Sign Up

Schedule a 1-1 Demo

Ecommerce

Unified data to boost ecommerce growth

B2B

Engage your customers across the funnel with a unified martech stack

SaaS
Saas

Increase product metrics with a unified martech stack

Agency
Agency

Scale your customers quickly with the right data