1. Home
  2. /
  3. Docs
  4. /
  5. AdvRed Documentation
  6. /
  7. Website Configuration
  8. /
  9. Consent Management

Consent Management

User Guide: Consent Management in AdvRed

The Consent Management feature in AdvRed is a critical component that ensures compliance with privacy laws such as GDPR. It allows you to manage how consent is handled for your users, which in turn dictates how advertising and scripts are delivered to them based on their consent status.

CMP Setting Options

In the ‘Consent Management’ section, you can choose between two settings for handling user consent:

  • Client Side: Select this option if you wish AdvRed to inherit consent directly from the client, meaning the consent status is determined by the code on the client’s side.
  • Cookie Based: Choose this if you want AdvRed to inherit consent from a URL consent string, which would typically be provided by a Consent Management Platform (CMP).

Importance of Consent Configuration

This configuration is essential because it affects how ad units or scripts are delivered on the platform:

  • You can deliver ad units or scripts based on whether consent has been granted.
  • It’s possible to segment the delivery by serving certain elements to traffic that has given consent and others to traffic without consent.

Implementing Client-Side Consent

To implement client-side consent transmission with AdvRed, you’ll use the following code snippet:

<script type="text/javascript">

var advRedUrl = "https://cdn1.adv.red/stg/adv_call_demo.js";

let script = document.createElement("script");
script.type = "text/javascript";

script.onload = script.onreadystatechange = () => {   if (!script.readyState || script.readyState === "loaded" || script.readyState === "complete") {
  script.onload = script.onreadystatechange = null;
  // custom settings here
  window.__advRed.adStart(yourCmpVariable);
  }
};

script.src = advRedUrl;
document.head.appendChild(script);

</script>

In this script:

  • Replace yourCmpVariable with the actual variable from your CMP that holds the user’s consent status.
  • This code will load the AdvRed script and initialize ad serving based on the consent variable provided.

By correctly setting up Consent Management, you ensure that the user’s privacy choices are respected and that your site complies with relevant data protection regulations.

References

AdvRed il SaaS progettato per editori e concessionari.

PIXECUTIVE LTD

City Limits, Unit 4, City Limits, Danehill, Reading, Berkshire, England, RG6 4UP

 

Pagine

Copyright ©2024 by Pixecutive Ltd. All Rights Reserved.