Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying consent after initial grant #3

Closed
Ceepster14 opened this issue Aug 12, 2021 · 3 comments
Closed

Modifying consent after initial grant #3

Ceepster14 opened this issue Aug 12, 2021 · 3 comments

Comments

@Ceepster14
Copy link

Hi,

It's a GDPR requirement to allow users to modify their cookie permissions even after they have given an original consent. I can't see a built-in mechanism in this plug-in to do that i.e. re-display the modal and allow the user to change their settings? Is this correct?

I've tried implementing my own approach by detecting whether the essential cookie has been set and then providing a footer link which re-displays the consent modal. However, making a change in the modal is not reflected in the stored cookies i.e. removing permission for thirdparty cookies does not then change or remove the stored consent.

Can you recommend how this necessary functionality should be implemented using this plug-in?

Thanks

@dryven-dano
Copy link
Contributor

Yes, you are absolutely right, so far subsequent changes have not been recognized. Erroneously, a consent was always given for all checked checkboxes, but the non-checked ones were simply ignored. I have now fixed this with the new release 1.0.7.

I don't know how you implemented the re-display of the cookie modal, just so you know: the method we foresaw for this is the show() method in the CookieModal object. I will definitely write a section in the documentation in the coming days about how to implement a this opt-out or change settings button.

On our customer's pages we did something like this:

cookie-byte.js

window.CookieModal = new CookieModal(window.CookieConsent);

_footer.antlers.html

<button onclick="window.CookieModal.show()">Customize cookie options</button>

As with the other issue, please close the issue once it has helped your problem, otherwise feel free to write again.

dryven-dano added a commit that referenced this issue Aug 17, 2021
@Ceepster14
Copy link
Author

Hi,

Thanks for that. I'll pull the latest and give it a go.

Cheers

@Ceepster14
Copy link
Author

Fantastic - thanks for that, works a treat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants