Leading Consent Management Platform

Compliant with GDPR, CCPA, COPPA, LGPD, PECR, PDPA, PIPEDA, and more.

Intégration de Prebid avec UniConsent CMP

UniConsent CMP fournit une intégration native avec les modules de gestion du consentement Prebid, incluant IAB TCF, GPP et CCPA.

Activer et inclure les modules Prebid suivants :

  • consentManagement
  • consentManagementUsp
  • consentManagementGpp

Configurer les paramètres CMP dans votre Prebid :

pbjs.setConfig({
  gdpr: {
    cmpApi: "iab",
    timeout: 3000,
    allowAuctionWithoutConsent: false,
  },
  usp: {
    cmpApi: "iab",
    timeout: 500,
  },
  gpp: {
    cmpApi: "iab",
    timeout: 3000,
  },
});

Attendre le signal de consentement IAB TCF

export default class UniConsentCMP {
  static cmpReady(next) {
    return new Promise((resolve, reject) => {
      window.__tcfapi &&
        window.__tcfapi("addEventListener", 2, function (tcData, success) {
          if (tcData && !tcData.gdprApplies) {
            resolve(next);
          }
          if (
            (tcData && tcData.eventStatus === "tcloaded") ||
            tcData.eventStatus === "useractioncomplete"
          ) {
            resolve(next);
          }
        });
    });
  }
}

await UniConsentCMP.cmpReady();

Vous avez encore des questions ?

Contactez-nous : support@uniconsent.com