Meet Google’s consent requirements for EU, UK, and Switzerland with our Google-certified CMP for WordPress Buy Now

Home > Docs > GDPR Cookie Consent(Legacy Version) > Setting Default State of Cookie Categories for User Consent

Setting Default State of Cookie Categories for User Consent

Last updated on June 16, 2023

The GDPR Cookie Consent plugin gives the users granular control over the cookies that they want to allow. They can turn the cookies on/off in their browser depending on their category.

For this, the plugin gives you two predefined categories named Necessary and Non-necessary. You can add the necessary cookies of your website to the Necessary category. The users will not be able to disable the cookies that are categorized as Necessary. So the cookies that are essential for the functioning of the website should be added to this category.

For the rest of the non-necessary cookies used by the website, you can either add them to the Non-necessary category or you can create categories of your own. This allows you to create cookie categories like Analytics, Statistics, Advertisement, etc. based on the nature of the cookies.

To create a new category for the cookies, go to GDPR Cookie Consent > Cookie Category. This will take you to the Cookie Category page where you can add the name of the category, slug, description of the category, and give the priority to determine the order in which the categories will appear on the front end. 

Disable Cookie Category

To disable a category by default, go to the Cookie Category page and click edit on the category that you want to edit, and set “disabled” as the default button state.

If you set the Category default state option as enabled, the category toggle button will be in the active state for cookie consent.

Load on start

If you enable Load on Start option, scripts under the created category will be rendered without waiting for user consent on the first page visit. This option is discreetly used only if you are sure that no user sensitive data is being obtained via the specified scripts.

Sell personal information

If you enable Sell Personal Information option, scripts under this category will be considered as personal data collecting scripts and will be blocked if opted out from CCPA.

The categories thus added will be visible on the user-end on a pop-up when the user clicks on the Settings button on the cookie bar. When clicked on each category, the users will be shown the description of the category as added by the admin. The user can then choose to enable or disable the cookies of each category from the popup.

Cookie Settings popup

Note: The categories, either predefined or user-defined, are only visible on the popup when there are cookies added into that category.

Know more about the plugin, here.