Whenever the page loads, the 'displayConsentAndAllowance‘ interaction is run. This interaction modifies the text on the screen to reflect the current settings.
If the consent has not been given within the last 24 hours the consent modal will show up and ask the user for opting.
Clicking 'Revoke consent‘ will destroy all cookies and after the next page load the user is asked to allow or disallow cookies. The consent is given implicitly when the user opts-in or opts-out. The validity of the consent cookie is 1 day, this meaning, if the user will return to/ reload this web page within 24 hours he will not be presented with the dialog.
The 'Cookies opt-in/opt-out‘ button lets the user change his mind… This can be tested with the…
'Try to set analysis cookie‘ button. This button sets a cookie only, when the user has opted-in. A dialog will show the result of the try.
Custom Interactions needed
The following interactions are used for this implementation:
Sorry, @Norm
I did not notice that the Lab here is not meant for user submitted interaction constructs. Would you please be so kind to move my thread to a more appropriate location (maybe ‘Tips and Tricks’)?
And now it’s your turn @Norm
It would be great if we could export a bloc that contains custom interactions with these actions to the bloc library. For use in another project.
This is only applicable if we use cookies on our Blocs site, correct? If we don’t create any cookies, whether for logins or anything else (in other words, a simple Blocs site with no added scripts), we don’t have to worry about any cookie consents since there are no cookies, correct?
Or does Blocs function with cookies even if we don’t add them?