Title: Managing cookie groups
Last modified: August 11, 2023

---

# Managing cookie groups

 *  Resolved [percy37](https://wordpress.org/support/users/percy37/)
 * (@percy37)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/managing-cookie-groups/)
 * Hi, we are using [https://www.createit.com/gdpr/](https://www.createit.com/gdpr/)
   for our GDPR cookie widget. We are now implementing W3 Total Cache and would 
   like cookie groups for each level of cookie consent. To do this I have created
   cookie groups for each of the 4 levels. The 4 cookies are as follows (key and
   value): ct-ultimate-gdpr-cookie-level=NQ%3D%3D, ct-ultimate-gdpr-cookie-level
   =NA%3D%3D, ct-ultimate-gdpr-cookie-level=Mw%3D%3D, ct-ultimate-gdpr-cookie-level
   =Mw%3D%3D and ct-ultimate-gdpr-cookie-level=Mw%3D%3D. We have tried various ways
   to match the cookies but it doesn’t seem to work. I would be grateful if you 
   could assist with which pattern we can use to match the cookies. Thanks. James

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/managing-cookie-groups/#post-16966212)
 * Hello [@percy37](https://wordpress.org/support/users/percy37/)
 * Thank you for your inquiry, and I am happy to assist you with this.
 * You should use the correct groups and each group should specify `{key}={value}`
   
   Depending on what key you are using, that should look like `{key}='{"strict":"
   1","thirdparty":"0","advanced":"0"}'`So you should replace `{key}` with the actual
   cookie name.
 * And don’t forget to enable all the checkboxes (enable and cache)
 * I hope this helps.
 *  Thread Starter [percy37](https://wordpress.org/support/users/percy37/)
 * (@percy37)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/managing-cookie-groups/#post-16979487)
 * Thanks Marko. How do you distinguish between different values of a cookie? I 
   have one cookie, with 4 possible values and each value needs its own cached version
   of the page.
 * Thanks. James
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/managing-cookie-groups/#post-17000454)
 * Hello [@percy37](https://wordpress.org/support/users/percy37/)
 * Sorry for the late reply.
 * You can create 4 different groups with different values and depending on the 
   value, the cache will be created for this specific group.
 * Thanks!
 *  Thread Starter [percy37](https://wordpress.org/support/users/percy37/)
 * (@percy37)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/managing-cookie-groups/#post-17010096)
 * Thanks Marko, however that’s what I have been doing. I think the issue is to 
   do with the characters that are in the value e.g. NQ%3D%3D. If I use just letters
   it works as you suggest, but with the values from the GDPR plugin it is not working.
 * The 4 cookies are as follows (key and value): ct-ultimate-gdpr-cookie-level=NQ%
   3D%3D, ct-ultimate-gdpr-cookie-level=NA%3D%3D, ct-ultimate-gdpr-cookie-level=
   Mw%3D%3D, ct-ultimate-gdpr-cookie-level=Mw%3D%3D and ct-ultimate-gdpr-cookie-
   level=Mw%3D%3D.
 * Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Managing cookie groups’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [cookies](https://wordpress.org/support/topic-tag/cookies/)

 * 4 replies
 * 2 participants
 * Last reply from: [percy37](https://wordpress.org/support/users/percy37/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/managing-cookie-groups/#post-17010096)
 * Status: resolved