GTM / Javascript consent variables problem
-
Hello, we are having some issues with the Javascript consent variables on our website, I’ll try to explain.
If a user enters our website we see the banner, we click on “save” and this will save only strict cookies, the page reloads and the Javascript variables are correct:
/* <![CDATA[ */ var gdpr_consent__strict = "true" var gdpr_consent__thirdparty = "false" var gdpr_consent__advanced = "false" var gdpr_consent__cookies = "strict" /* ]]> */
We open again the banner and it shows also ok, having selected only necessary.
If we change and allow third party on the cookie banner, the page reloads and the Javascript variables are not updated:
/* <![CDATA[ */ var gdpr_consent__strict = "true" var gdpr_consent__thirdparty = "false" var gdpr_consent__advanced = "false" var gdpr_consent__cookies = "strict" /* ]]> */
But, if we opened again the banner the selection is correct, having the strict and thirdpary cookies selected, the problem is that this is not reflecting in the Javascript variables.
If we navigate to another URL, the JS variables are magically updated:
/* <![CDATA[ */ var gdpr_consent__strict = "true" var gdpr_consent__thirdparty = "true" var gdpr_consent__advanced = "false" var gdpr_consent__cookies = "strict|thirdparty" /* ]]> */
What can be happening here? We have disabled all JS cache for testing purposes.
Any ideas? Could this be the browser cache?Thank you.
The page I need help with: [log in to see the link]
- The topic ‘GTM / Javascript consent variables problem’ is closed to new replies.