TCF Consent Management Module

by rtbhouse_inventory

JavaScript

// =========== TCF/USP Consent Management Module =========== //
          consentManagement: {
            gdpr: {
              cmpApi: "iab",
              timeout: 5000, 
              defaultGdprScope: true,
              /* only used for cmpApi: 'static'; GDPR consent data being passed directly
                consentData: {
                  getTCData: {
                    tcString: "CQLA94AQLA94AEsACBENBYFoAPPAAELAAATAGMwCAAIAAgACIAQgApACNQF5gMZAxmAQABAAEAARAA_AEIARqAvMBjIAAA.cAAAD_gAAAA",
                    gdprApplies: true,
                    purpose: { consents: { 1: true, 2: true, 3: true, 4: true } }, // example
                    vendor: { consents: { 16: true } }, // example
                  },
                }, 
              */
            },
            usp: {
              cmpApi: 'static',
              timeout: 3000,
              consentData: {
                getUSPData: {
                  uspString: '1YYY'
                }
              }
            }
          },
// =========== END OF CONSENT MANAGEMENT MODULE=========== //