Using Non TCF Vendors with the Ezoic CMP
As a data controller you are responsible for managing vendors on the page and ensuring that they abide by consent from the user. Ezoic CMP provides an easy method of obtaining consents for vendors who may not be part of the IAB Global Vendor List.
Enter the vendor details into the form and they will appear in the CMP at the bottom of the vendor list automatically.
To use the consent data obtained for these vendors you must include a script that listens for these consents. You can use the information provided to this function to properly configure your additional vendors for the consent given. You can find the ezoic assigned vendor IDs for your vendors in the table. These IDs are integers, assigned statically, and unique to your vendor in the Ezoic system.
allowedPurposes are the IAB data use purposes which the user has elected to allow for your site
Example: [“1”, “8”, “9”, “10”]
allowedSpecialFeatures are the features the user has elected to allow for your site
Example: [“1”, “2”]
vendors is an object containing a list of approved and declined vendors, which you can use to conditionally include vendors in your page.
Example: {consent: [2, 3], decline: [1, 4]
function ezoicPubConsentListener(allowedPurposes, allowedSpecialFeatures, vendors) {
// conditionally include vendor 3 in the page if consent is granted for that vendor
// and IAB purpose 1 (storing and accessing information on a device) is selected
if ((vendors.consent.indexOf(3) != -1) && (allowedPurposes.indexOf(“1”) != -1)) {
var t = document.createElement('script');
t.async = false;
t.src = 'https://cdn.myvendor.com/gatherandprocessdata.js';
var tag = document.getElementsByTagName('head')[0];
tag.appendChild(t);
}
}