Skip to content

Sending Consent Signals to Ad Platforms

Consent signals communicate a user’s data privacy preferences to ad platforms. Sending accurate consent signals is required to comply with regulations such as GDPR (EU/EEA/UK) and CCPA (US), and is increasingly enforced by ad platforms like Google and Meta as a condition for running targeted ads.

CustomerLabs lets you configure consent-based event triggers per destination and send consent signals to ad platforms — even if your website does not have a cookie consent banner.


Section titled “Configuring Consent Settings for Destinations”

By default, CustomerLabs sends event data to connected destinations without requiring additional user consent parameters. For destinations that operate in regulated regions, you can require specific consent parameters before events are forwarded.

  1. In your CustomerLabs account, navigate to DestinationsConsent Triggers tab.
  2. Locate the destination you want to configure. Only active destinations can have consent settings updated.
  3. Click the Action icon next to the destination.
  4. A dialog box presents two options:

No Additional Consent Required (default) No additional consent parameters are needed. Events are forwarded to the destination regardless of user consent state.

Required Additional Consent Events are only forwarded when the specified consent parameters are present and granted. You can select from default consent parameters in the dropdown or click Add Custom Consent Parameter to define your own.

Section titled “Sending Consent Updates via _cl.trackConsent()”

When a user accepts or modifies their consent preferences (via your cookie banner or a custom consent mechanism), pass those preferences to CustomerLabs using the _cl.trackConsent() function.

_cl.trackConsent({
"ad_user_data": "granted",
"ad_personalization": "granted",
"ad_storage": "denied"
});

The full list of supported consent parameters:

{
"ad_user_data": "granted",
"analytics_storage": "granted",
"ad_personalization": "granted",
"ad_storage": "granted",
"functionality_storage": "granted",
"personalization_storage": "granted",
"security_storage": "granted"
}

Each parameter accepts "granted" or "denied" as its value. If you use a Google Certified CMP that pushes consent data to the DataLayer, you can transmit these values via GTM instead of calling the function directly.


Section titled “Sending Consent Signals Without a Consent Banner”

If your website does not display a cookie consent banner, you can still send consent signals to ad platforms using a Custom Integration in CustomerLabs. This approach sets a default consent state on page load for all users.

Google requires consent signals to be sent for ad targeting in regions covered by GDPR and similar regulations. If you do not have a cookie banner, use the following steps to deny consent by default for all users.

Step 1: Open Custom Integration

Navigate to DestinationsCustom Integration and enable the JavaScript integration.

Step 2: Name and Add the Script

Name the integration Google Consent and paste the following code into 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'
});
}());

This script runs on page load and sets all consent types to denied by default for any identified user.

Step 3: Save the Integration

Click Save to activate the custom integration. The script will now run on your website.

Step 4: Set Trigger Paths

Define the URLs where this consent denial should be applied. You can add multiple URLs using Add New Firing Rule. For example:

  • https://example.com/contact
  • https://example.com/privacy-policy
  • https://example.com/terms

Step 5: Verify the Consent Cookie

To confirm the integration is working:

  1. Load a page on your website in a browser.
  2. Right-click → Inspect → navigate to the Application tab.
  3. Select Cookies from the left panel and choose your page URL.
  4. Search for the cookie named User Consent — you should see the consent permissions are set to denied.

Consent Parameter Reference

ParameterDescription
ad_storageStorage (cookies) related to advertising
ad_user_dataConsent to send user data to Google for ads
ad_personalizationConsent for personalized advertising
analytics_storageStorage related to analytics (e.g. visit duration)
functionality_storageStorage supporting website functionality (e.g. language)
personalization_storageStorage related to personalization (e.g. recommendations)
security_storageStorage for security features (e.g. authentication, fraud prevention)