dany897
Forum Replies Created
-
Hi Lee,
after a deep analysis of the plugin source code, we have identified multiple consent mode issues. Here is a complete report.
Bug 1 — Fixed in our local copy
File:consent-management.9d45b6cb.chunk.min.js(source:cmps/iubenda.mjs)In the
getConsent()function, the fallback operator uses?? trueinstead of?? falseforstatistics,marketingandpreferences:statistics: consent.purposes['4'] ?? true, marketing: consent.purposes['5'] ?? true, preferences: consent.purposes['2'] ?? true,When a user accepts only necessary cookies (purpose 1), purposes 2, 4 and 5 are absent from the iubenda cookie. The
?? truefallback causes them to be treated as granted, leading to incorrect consent signals.Bug 2 — Fixed in our local copy
File:consent-api.c33d5439.chunk.min.js(source:consent/consent-api.mjs)In
processExternalGcmConsentUpdate_experimental, thepreferencesvalue is calculated as:preferences: (functionality_storage === 'granted') || (personalization_storage === 'granted')The
||operator means that if either signal is granted,preferencesbecomestrue. Since iubenda sends bothfunctionality_storage: grantedandpersonalization_storage: grantedfor functional-only consent, this causespreferences: trueeven when the user has not consented to personalization.Bug 3 — Fixed in our local copy
File:pixel-google.17caa9f5.chunk.min.jsIn both
loadGoogleandupdateGoogleConsentMode,personalization_storageis mapped to thepreferencescategory:personalization_storage: preferences ? "granted" : "denied"Per Google’s specification,
personalization_storagerelates to ad personalization and should be mapped tomarketing, notpreferences. The current mapping causespersonalization_storageto be set tograntedwhenever the user accepts functional cookies, which is incorrect.Bug 4
File:pixel-google.17caa9f5.chunk.min.jsWhen a returning user has previously given consent,
loadGooglereads the cached consent and calls:gtag("consent", "default", { ad_storage: "granted", analytics_storage: "granted", ... })The
consent defaultshould always be set todeniedfor all signals, regardless of previously saved consent. The saved consent should then be applied via a subsequentconsent updatecall. The current behavior collapses default and update into one, which is not compliant with Google’s Advanced Consent Mode specification.Bug 5
When a user denies consent and the page reloads, Pixel Manager correctly reads the iubenda cookie and sets the consent default to
denied. However, it never fires agtag('consent', 'update')call in this scenario, because no CMP click event occurs during the reloaded session. As a result, the “Updated State” column in consent mode inspection tools showsunknowninstead ofdenied.We have applied local fixes for bugs 1, 2 and 3 by editing the compiled files directly. These are temporary workarounds and will be lost on the next plugin update. We kindly ask you to address all five issues in the next release.
Best regards,
We found the root cause by analyzing the plugin source map. In
src/js-src/public/pmw/consent/cmps/iubenda.mjs, thegetConsent()function returns:preferences: consent.purposes['2'] ?? trueThe fallback
?? trueshould be?? false. When a user accepts only necessary cookies (purpose 1), purpose 2 is absent from the iubenda cookie, soconsent.purposes['2']isundefined, andundefined ?? trueevaluates totrue, causingpersonalization_storageto be set togranted. The same applies tostatisticsandmarketingfor consistency, though those were not triggering visible issues in our case. We fixed it locally by editing the compiled file, but the fix needs to be applied in the source and recompiled for the next release.Hi, news?
Hello Aleksandar,
the issue occurs when only the functional cookies from Iubenda are accepted. When this is done, upon refreshing the website page, Infotrust reports personalization_storage as granted by default.

- This reply was modified 2 months, 3 weeks ago by dany897.
Hello, even after deactivating the Pixelyousite plugin, the issue persists.
The problem occurs when functional cookies are enabled. Upon refreshing the page, the functional storage cookies are correct, while the personalization storage cookies are activated abnormally. In the default state they are accepted, whereas the “update state” cookies are correctly blocked. Why are the personalization storage cookies activated by default?
With the Pixel Manager plugin deactivated, the issue does not occur.Is there anything new?