Advanced Settings Reference
This article describes every option of the Advanced tab in Cookie Notice → Options, with its default value. Use it as a reference when you need to know what an option does.
The tab has these sections: Behavior, Fonts, Content, Google Consent Mode (Pro), Cookie Attributes, and Capabilities (Pro).
Behavior
| Option | Default | Description |
|---|---|---|
| Assets Mode | Production | Production loads one minified JavaScript file. Development loads the separate, non-minified files. Use Development only to investigate a JavaScript error. |
| Test Mode | Off | When on, the cookie notice is displayed only to site administrators. Use it while you configure the notice on a live site. |
| Reload Page | Off | When on, the page is reloaded when the visitor accepts or rejects the cookies, so the scripts of the categories are applied immediately. |
| Store User Consent | On | When on, each consent is saved in the Consent Log. |
| Consent Log Retention | Disabled | Permanently deletes the consent log records older than the selected period: Six Months, One Year, Two Years, or Three Years. The deletion runs when the option is saved and then once a day. |
| Transient Expiration | 0 | The number of seconds the notice data is kept in a transient. With 0 the transient is not used. |
| Page Fragment Caching Exception (W3TC) | Off | Adds the scripts of the categories with the page fragment caching feature of W3 Total Cache. Turn it on only if you use W3 Total Cache. |
| WP Super Cache Integration (Pro) | On | Registers the acceptance cookie with WP Super Cache, so cached pages with consent-based scripts are not served to visitors who have not accepted. |
See Using the Plugin with Caching Plugins for Transient Expiration and the two caching options, and Reviewing and Exporting Consent Records for the consent log options.
Fonts
| Option | Default | Description |
|---|---|---|
| Google Fonts Embed Code URL | The URL of the Open Sans font | The Google Fonts stylesheet loaded on the front end. Clear it to load no font from Google. |
| Headings Font Family | ‘Open Sans’, Helvetica, Arial, sans-serif | The font family of the headings. |
| Paragraphs Font Family | ‘Open Sans’, Helvetica, Arial, sans-serif | The font family of the paragraphs. |
| Buttons Font Family | ‘Open Sans’, Helvetica, Arial, sans-serif | The font family of the buttons. |
Content
| Option | Default | Description |
|---|---|---|
| Responsive Breakpoint | 700 | Below this browser width, in pixels, the mobile version of the notice is used. |
| Cookie Table Columns | Name, Expiration, Purpose | The columns of the cookie tables. See Listing Your Cookies. |
| Force CSS Specificity | On | Adds !important to the CSS of the plugin so your theme does not override it. |
| Compress Output | On | Compresses the JavaScript code that initializes the notice in the page. |
Google Consent Mode (Pro)
| Option | Default | Description |
|---|---|---|
| Push Basic Consent Mode to Data Layer | Off | Sets all the consent mode parameters to “denied” by default on every page, and sends the consent choices of the visitors to Google through the data layer after they grant consent. |
| Google Tag Manager Container ID | Empty | Your container ID (for example GTM-XXXXXXX). When set, the plugin loads the Google Tag Manager container after the visitor grants at least one consent mode parameter. The container is not loaded before the visitor makes a choice. |
See Setting Up Google Consent Mode.
Cookie Attributes
These options apply to the cookies that the plugin uses to remember the visitor’s choice.
| Option | Default | Description |
|---|---|---|
| Expiration | Unlimited | How long the choice is remembered. |
| Domain (Pro) | Empty | The domain for which the cookies are valid. |
| Path | / | The path for which the cookies are valid. |
Expiration
The available values are Unlimited, One Hour, One Day, One Week, One Month, Three Months, Six Months, and One Year.
When the period ends, the saved choice expires and the visitor sees the cookie notice again. Select a period if you want to ask for consent again at regular intervals, for example Six Months or One Year.
A new value applies to the choices made after you save it. The choices already saved keep the expiration they had.
Browsers can apply their own limits to the lifetime of cookies. A browser may delete the cookies of the plugin earlier than the selected period, and the visitor then sees the notice again.
Domain (Pro): share the consent across subdomains
By default the cookies are valid only for the host where the visitor made the choice. A choice made on www.example.com does not apply to shop.example.com.
To share the choice across the subdomains, enter your main domain in Domain:
example.com
With this value, a choice made on any subdomain of example.com is valid on all of them.
Requirements when the subdomains are separate WordPress sites:
- Install the Pro version on each site and enter the same value in Domain on each site.
- Use the same Expiration and Path on each site.
- Create the same categories on each site, with the same IDs. The saved choice refers to the categories by their ID. You can see the ID of a category in the address of its edit page, after
edit_id=.
Leave Domain empty if you do not need to share the choice.
Path
The path that must be part of the requested URL for the browser to send the cookies. The default / makes the cookies valid for the whole site. Change it only if you have a specific reason.
Capabilities (Pro)
In the Pro version you can choose which WordPress capability is required to open each plugin menu. This lets you give access to users who are not administrators, or restrict it.
| Option | Default capability | Roles with this capability by default |
|---|---|---|
| Consent Log Menu | manage_options | Administrator |
| Sections Menu | edit_others_posts | Editor, Administrator |
| Categories Menu | edit_others_posts | Editor, Administrator |
| Cookies Menu | edit_others_posts | Editor, Administrator |
| Tools Menu | manage_options | Administrator |
| Maintenance Menu | manage_options | Administrator |
The Options menu always requires the manage_options capability.
Example: allow only administrators to edit categories
Categories can contain scripts that run on your site. To restrict them to administrators, enter manage_options in Categories Menu and click Save settings.
Enter a valid WordPress capability. If you enter a capability that no user has, nobody can open that menu.
In the free version all the plugin menus require the manage_options capability.
Other tabs
- Content: Configuring the Cookie Notice, Configuring the Cookie Settings Window, Letting Visitors Change Their Preferences.
- Style: Customizing the Style.
- Geolocation: Showing the Notice Only in Selected Countries.
- License (Pro): Activating Your License.