I think it’s working just as it should. Perhaps a “dismiss” button could be added in a later version. The dismiss button would hide the cookie consent banner.
But otherwise, from what you described, it’s working as you would expect. Your cookies are “must use”, therefore they’re set on load. The user can agree, dismissing the banner, or leave your website.
Thanks for getting back to me, but I would have thought that by refusing to accept the cookies, there would be a consequence that was more than having to suffer a banner.
He has refused to accept the cookies but can still navigate around the site being tracked.
No problem, I definitely see what you’re saying. Currently this plugin doesn’t have opt-out functionality.
Ideally, most of your cookies will not be “Must Use”, and you’ll allow users to opt-out of them. But this feature wont be released until V2.
I’m in the same boat as you actually. Currently we have all our cookies set to “Must Use” which is not GDPR compliant. Users have no choice but to accept the cookies or leave the website.
Waiting (not so) patiently for v2 😛
You could solve this problem in multiple ways already.
You have to manage whether or not a cookie is placed yourself, the plugin helps you in determining if you are allowed to place the cookie.
If you use Google Tag Manager, I would suggest creating a variable: WP Allowed Cookies (example name) and read the cookie gdpr[allowed_cookies]. This cookie is set by the plugin and contains all the allowed cookies.
If you don’t have Google Tag Manager (I would first of all suggest to start using it) installed, and you have the codes placed manually placed on the website, you can use the helper functions included in the plugin. Depending on how you’ve added the tags, you can choose to do it in php or in javascript.
In javascript you can do it like this:
if ( ! has_consent( 'analytics' ) || ! is_allowed_cookie( '_ga' ) ) {
window['ga-disable-UA-XXXXXXXX-X'] = true; // Don't forget to replace X for your actual UA numbers.
}
This comes from the docs
Good luck in implementing!
I don’t think that addresses the problem as there is no way for the end-user to revoke consent or to opt-out. Unless I’m missing something?
@kreekhoorn
First off many thanks.
I think I am going to need more than luck! I am not sure I can afford more time to get on top of another plugin….
I just looked at the instructions on Tag Manager and felt a massive jaw drop
Maybe I will feel more optimistic in the morning?
-
This reply was modified 5 years, 4 months ago by
steveb123. Reason: To address my reply to the correct person
I don’t understand. If all cookies are required, why do you need an option to opt out?
If you need to reopen the privacy preferences window to opt out you can use the gdpr_preferences( $button_text )
function or the [gdpr_preferences text="button text"]
shortcode to create a button that reopens it.
In v2 you will be able to choose if cookies are required, checkbox checked by default, unchecked by default.