Log In

euconsentWithDisclosedVendors

The euconsentWithDisclosedVendors command will return the end-user's TC String with a list of disclosed vendors .

Prerequisite

In order to generate a TC String with disclosed vendors, you will first need to have the the Disclosed Vendors in the TCString feature enabled in the Advanced Setting menu of your GDPR TCF vendor list associated with the property.

Command

__tcfapi('euconsentWithDisclosedVendors', 2, function (euconsentWithDisclosedVendors, success) {
  console.log({euconsentWithDisclosedVendors})
});

Response

{
    euconsentWithDisclosedVendors: 'CP7qygAP7qygAAGABCENAsEsAPPgAAAAABAgF5wAQF5gAAAECQ…5joAIC8yUAEBeZSACAvMAAA.IF5wAQF5gAAA.YAAAAAAAAAAA'
}
schema:
  description: euconsentWithDisclosedVendors response
  type: object
  properties:
    euconsentWithDisclosedVendors:
      type: string
      description: TC String with disclosed vendors

The decoded TC String will include disclosed vendors.