Yesterday I was trying to migrate from Quantcast Choice to Google Funding Choices for GDPR / EU CMP purposes. For some reason, after prompting for consent and clicking "consent" on the message dialog, the method googlefc.getConsentStatus()
always returns UNKNOWN
(0).
After further investigation, it seems that no matter what kind of interaction is made with the consent message (straight up clicking the consent button, rejecting it, selecting individual vendors, etc.) getConsentStatus()
always returns UNKNOWN
.
Anyone has a clue on what is going on? Am i missing something?
The relevant code that I'm using:
window.googlefc.callbackQueue.push({
'CONSENT_DATA_READY':
function () {
let consentStatus = window.googlefc.getConsentStatus();
vm.log("CM_CONSENT_STATUS", consentStatus);
switch (consentStatus) {
case window.googlefc.ConsentStatusEnum.CONSENTED_TO_PERSONALIZED_ADS:
case window.googlefc.ConsentStatusEnum.CONSENT_NOT_REQUIRED:
vm.allow(true);
break;
case window.googlefc.ConsentStatusEnum.CONSENTED_TO_NON_PERSONALIZED_ADS:
vm.reject(true);
break;
case window.googlefc.ConsentStatusEnum.UNKNOWN:
case window.googlefc.ConsentStatusEnum.NO_CONSENT:
break;
}
}
});
window.googlefc.getConsentStatus()
is always returning window.googlefc.ConsentStatusEnum.UNKNOWN