How to activate Consent Mode in CookieHub

Google Consent Mode allows Google services (such as Analytics and Ads) to adjust their behavior based on user consent. CookieHub fully supports Consent Mode v2, helping your website stay compliant with GDPR and other privacy regulations.


What does Consent Mode do?

Consent Mode ensures:

  • Data is sent to Google only after user consent.
  • Google tags adapt their behavior depending on consent status.
  • Advertisers can maintain accurate analytics through consent-based modeling.

For more details, see:


Requirements

  • CookieHub version 2.8.0 or later for Consent Mode v2.
  • A supported implementation method: Google Tag Manager, WordPress plugin, or Manual HTML code.
  • For previous versions (<2.8), you must upgrade before enabling Consent Mode.

How to activate Consent Mode

1. For new installations

Consent Mode is available by default on CookieHub version 2.8 or later. Simply follow the installation guide for your preferred method:


2. For existing CookieHub installations

If you are using an older version:

  1. Log in to the CookieHub dashboard.
  2. Select your domain and click Upgrade.
  3. Confirm by clicking Upgrade in the dialog.
  4. Click Publish pending changes at the top of the page.

Note: Changes may take up to 5 minutes to propagate via the CDN. Perform a hard refresh after that.


How to enable Consent Mode by implementation method

Google Tag Manager

  • If using the latest CookieHub GTM community template, Consent Mode v2 is enabled by default.

    If you are on an older GTM template:


WordPress plugin

  1. Make sure you have the latest version of the CookieHub WordPress plugin installed.
  2. In the CookieHub dashboard, confirm that Consent Mode is enabled in Settings → General.

    In WordPress:

    • Go to Settings → CookieHub.
    • Open the Advanced Settings tab.
    • Enable Consent Mode v2.
  3. Save changes.

Manual HTML/JavaScript

  1. In the CookieHub dashboard:
    • Go to My Domains → Settings.
    • Enable Consent Mode.
    • Click Save & publish.

      Go to the Implementation tab:

    • Select Manually insert the code.
    • Copy the production code and replace your current CookieHub code.
  2. Place the updated code at the top of the <head> tag for best performance.

Important compliance note

If you customized the Marketing category description, update it to comply with Google’s EU User Consent Policy:

  • Go to Content → Categories in the CookieHub dashboard.
  • Restore or update the Marketing description.
  • Click Save & publish.