If your web entity currently uses a separate Quantcast Pixel (i.e., for Measure or Analytics services), in order for Quantcast Choice to correctly communicate consent with our servers, you need to use a quant.js pixel or modify parameters of your img pixel.
Information on each scenario is listed below.
Scenario 1: You are currently using a quant.js pixel
Action: No further action is needed.
Scenario 2: You are using a Quantcast img pixel
Action: You will need to write code to add the GDPR=0/1 and the consent string to the Quantcast img pixel as follows. Remember to customize the code below with any additional arguments that you are passing today.
var pcode='p-XXXXX'; // this should be replaced by the Quantcast p-code for the publisher or marketer
__tcfapi('getTCData', 2, function(consentData, isSuccess) {
if (isSuccess && consentData.vendor.consents["11"]) {
var img=new Image(1,1);
img.src='http://pixel.quantserve.com/pixel/'+pcode+'.gif?'+'gdpr='+(consentData.gdprApplies?'1&gdpr_consent='+consentData.tcString:0);
img.style='display:none';
document.body.appendChild(img);
}
}, [11]);