Domain settings
The Settings tab is where you manage the settings for your domain in CookieHub. It is divided into five sections: General, Consent storage, Regional Settings, Languages and Categories.
General
In the General section, you can enable or disable general settings for your domain. This includes options such as:
- Consent Log: When enabled, CookieHub will collect anonymous data about the user’s choices, browser information, and unique token in order to present the user’s choices if required.
- Automatic Updates: Automatically update the CookieHub widget to the latest version.
- Automatic Cookie Blocking: When enabled, CookieHub will automatically block cookies set by common services until the user has consented.
- Google consent mode (GCM): When enabled, CookieHub will automatically update the consent status in GCM based on user choices.
- Automatic Cookie Removal: When enabled, CookieHub will automatically remove any cookies set for categories that have not been allowed by the user.

Consent storage
This section allows you to customize how CookieHub stores user consent. You can change the name of the CookieHub consent cookie, its lifetime in days and whether the Secure attribute is added to the cookie. By default, the consent cookie is named cookiehub, has a lifetime of 365 days and no Secure attribute.
Users are prompted to reconsent after the consent lifetime days have passed since their last consent. This means that if a user gave consent to cookies on your website and the consent lifetime is set to 365 days, they will be prompted to give consent again after 365 days have passed. This is to ensure that users have control over their data and can change their preferences over time.

Cookie name
The consent cookie is named cookiehub by default. Change it if the name conflicts with an existing cookie on your website or if your naming conventions require a different name.
A custom cookie name affects implementations using the CookieHub Google Tag Manager template. The stored consent state becomes available later in the page lifecycle, which can change when consent-dependent tags fire.
The CookieHub template reads the consent cookie while the Consent Initialization - All Pages trigger runs, which is what makes the stored consent state available before Page view tags execute. The template reads the default cookie name, cookiehub, at this stage.
With a custom cookie name, the stored consent state is not available at that point. It becomes available when the cookiehub_consent_update event is published instead. Tags that depend on consent should therefore use cookiehub_consent_update as a firing trigger, combined with the appropriate Additional Consent Checks, rather than relying on Page view alone.
cookiehub_consent_update is published whenever cookiehub_modified is published. Using both as firing triggers on the same tag can cause the tag to fire twice.
Cookie blocking and consent enforcement are unaffected by the cookie name. Only the point at which the stored consent state becomes available in the data layer changes.
For the full configuration steps, see Custom consent cookie name.
Secure cookie mode
This setting controls whether CookieHub adds the Secure attribute to the consent cookie. Browsers only send cookies carrying the Secure attribute over HTTPS connections.
Three modes are available:
- Off — the
Secureattribute is not added. This is the default. - Auto — the
Secureattribute is added when the page is served over HTTPS. - Force — the
Secureattribute is always added, including on pages served over HTTP. The browser does not send the cookie back on those pages, so consent does not persist and the consent dialog reappears on every page view.
For most production websites served over HTTPS, Auto is the recommended mode. Only use Force if the website is not accessible over HTTP at all.
Auto and Force require CookieHub 2.9 or newer. Domains running an older widget version behave as if the mode is set to Off, which is the default, so existing domains are unaffected by the setting being introduced. See the CookieHub 2.9 release notes for details.
Regional settings
Customize CookieHub’s behavior and policy frameworks based on the location of your website’s visitors.
More information about regions
Languages
In the Languages section of the Settings tab, you can configure the language settings for your CookieHub widget.
More information about languages
Categories
In the categories section, you can configure default settings for all categories in CookieHub. These settings can then be overridden for specific regions from the regional settings section or in the Customize dialog.
The following settings can be customized for each category:
- Checked by default: This sets the default checkbox state for the category when the user hasn’t yet consented.
- Used for tracking cookies: If this is checked, CookieHub will override the “Checked by default” state and set it to unchecked if the user’s browser sends the “do-not-track” flag.
- Visibility: This setting controls how to determine whether to show the category or not. It can be set to “Always visible”, “Always hidden”, or “Only show if any cookie is assigned to it”.
- Consent type: By default, CookieHub will use the consent type specified for the region. However, this can be overridden here to always use “Implied consent / opt-out”.
