-
Hi all, I included a link to our privacy policy page in the consent modal's footer. The disablePageInteraction parameter is set to true, leading to some interesting situations. The privacy policy is a regular page on the site, so when the user clicks the link on the modal, the privacy policy page loads, but they cannot read it before accepting the modal. I understand that this is how the disablePageInteraction parameter functions. We want to maintain this strict mode, but we need to find a way for users to view the privacy policy before accepting anything. What is the best way to resolve this situation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @akosphp, you need to differentiate the privacy policy page from the other pages. There are many ways to do this. One approach is to add a simple script tag in the privacy policy page only, and set a unique global variable: <script>window.isPrivacyPage = true;</script> The above script must be placed before the plugin's initialization script. CookieConsent.run({
/// ...
disablePageInteraction: !window.isPrivacyPage
}); |
Beta Was this translation helpful? Give feedback.
-
Gentlemen, as far as I understand current consensus in rulings, at least in Germany, pages like "Imprint" and "Privacy Policy" must be accessible and readable without obstruction by any kind before any consent is given. Therefore I would like to suggest an addendum to the authors solution. Prevent the modal to pop up on these pages entirely by setting the option "autoShow" as well:
|
Beta Was this translation helpful? Give feedback.
Hi @akosphp,
you need to differentiate the privacy policy page from the other pages.
There are many ways to do this. One approach is to add a simple script tag in the privacy policy page only, and set a unique global variable:
The above script must be placed before the plugin's initialization script.
You can then toggle the
disablePageInteraction
option dynamically like so: