Consent Management Platform (CMP) Integration
Overview
Section titled “Overview”Consent Management Platforms (CMPs) are essential for websites to comply with privacy regulations like GDPR. Htag works seamlessly with various CMPs to ensure that user consent is properly collected and respected before loading ads.
How Htag Works with CMPs
Section titled “How Htag Works with CMPs”You can configure Htag to wait for the CMP to load and collect user consent before initializing the ad loading process. This is controlled by the awaitTcLoaded setting in your tag configuration.
When you enable awaitTcLoaded, Htag will wait for the CMP to load and initialize, and check for the existence of the Transparency and Consent Framework (TCF) API.
Supported CMPs
Section titled “Supported CMPs”Htag is compatible with any CMP that implements the IAB Transparency and Consent Framework (TCF) v2.0 standard.
Configuration
Section titled “Configuration”Configure CMP integration through the Adconsole interface. Simply enable or disable the awaitTcLoaded setting for your tag.
Example Implementation
Section titled “Example Implementation”<!-- First, load your CMP --><script src="https://your-cmp-provider.com/cmp.js"></script>
<!-- Then, load Htag --><script defer="defer" async="async" src="https://adnz.co/header.js?id=YOUR_TAG_ID"></script>Related Concepts
Section titled “Related Concepts”- Integration: Learn about basic Htag integration