Skip to content

Check if any answer was ever given #500

Discussion options

You must be logged in to vote

Hi @Marcelo-Petrucelli,

you can "force" the user to make a choice before browsing the website via force_consent: true.

Any suggestions or ways to find out if I'm in the "initial state" of the consent?

You can check if the plugin's cookie is set or not.

I also noticed that, even when my config is set to Opt-out, when the user has not yet interacted with my consent banner ...

That's the expected behavior, getUserPreferences() only reflects the user's preferences (if expressed).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Marcelo-Petrucelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants