FrontConsent

Beschrijving

FrontConsent shows a lightweight, configurable cookie consent banner with Accept and Reject actions, following the guide published by Spain’s AEPD (Agencia Española de Protección de Datos) as well as GDPR/ePrivacy requirements. Rejecting costs the visitor the same number of clicks as accepting, no non-essential cookie is set before the visitor decides, and the decision can be changed at any time.

Choose between a full-width bottom bar, a boxed panel (bottom-left or bottom-right) or a centered popup, and customize the message, button labels, cookie policy page, accent color and cookie expiration.

Google Consent Mode v2:
Google Tag Manager and/or GA4 are only requested and loaded after a visitor accepts — never before — and returning visitors who already accepted get the scripts on normal page load. Implements Google Consent Mode v2, so it also holds back tracking from other analytics/ads plugins that respect it — including Google Site Kit — until the visitor decides.

Tracking integrations:
Paste a Google Tag Manager or GA4 ID (or install snippet), or a Clientify, Brevo or ChatGPT Ads snippet, and FrontConsent automatically detects which tool it belongs to and only loads it after consent.

Acceptance stats:
The settings page shows a simple accepted/rejected acceptance-rate stat (site administrators are excluded from the count).

Advanced Cookie Management (FrontConsent PRO):
Extend Cookie Notice with separate Necessary, Analytics and Marketing preferences, a customizable preferences dialog and a reusable trigger that lets visitors update their choices later. Google Ads, Meta Pixel and Microsoft Clarity only run after the relevant category is accepted. It also supports the official Meta Pixel for WordPress plugin by holding its Pixel and Conversions API signals until Marketing consent.

More information in the FrontConsent PRO page.

External services

This plugin only connects to external services that the site owner explicitly configures — none are contacted by default. All connections below happen entirely in the visitor’s own browser, after that visitor has accepted the relevant cookie category; no data is ever sent from the server.

Google Tag Manager / Google Analytics 4 (GA4)
If a site administrator enters a Google Tag Manager container ID or a GA4 Measurement ID in the plugin settings, the visitor’s browser loads the corresponding Google script (https://www.googletagmanager.com/gtm.js or https://www.googletagmanager.com/gtag/js) once the visitor accepts. This sends standard Google Tag Manager/Analytics data (e.g. page views, and any events the site’s own tag configuration adds) to Google.
Service provided by Google: Terms of Service, Privacy Policy.

Clientify Analytics (Plus or classic)
If a site administrator adds a Clientify Analytics tracking ID, the visitor’s browser loads Clientify’s tracking script (https://analyticsplusdev.clientify.net or https://analytics.clientify.net) once the visitor accepts, sending page-view and visitor tracking data to Clientify.
Service provided by Clientify: Terms of Service, Privacy Policy.

Brevo
If a site administrator adds a Brevo tracking snippet, the visitor’s browser loads Brevo’s SDK (https://cdn.brevo.com/js/sdk-loader.js) once the visitor accepts, sending visitor tracking data to Brevo.
Service provided by Brevo: Terms of Service, Privacy Policy.

ChatGPT Ads (OpenAI)
If a site administrator adds a ChatGPT Ads Pixel ID, the visitor’s browser loads OpenAI’s ads pixel script (https://bzrcdn.openai.com/sdk/oaiq.min.js) once the visitor accepts, sending conversion/attribution tracking data to OpenAI.
Service provided by OpenAI: Terms of Use, Privacy Policy.

Schermafbeeldingen

Installatie

  1. Upload the plugin files to the /wp-content/plugins/frontconsent directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Configure the banner under Settings FrontConsent.

FAQ

I was using FrontBlocks’ Cookie Notice. What happens now?

Activating FrontConsent copies your existing Cookie Notice settings and acceptance/rejection stats from FrontBlocks into FrontConsent automatically, and turns off FrontBlocks’ own banner so only one is ever shown.

Does this store consent records for audit purposes?

The free version keeps a simple aggregate accepted/rejected count. Per-visitor consent logging and cookie scanning are part of the planned Pro version.

Can I import my settings from GDPR Cookie Compliance?

Yes. If its settings are found, FrontConsent shows an “Import settings” button on its settings page. It imports Google Analytics 4 and Google Tag Manager IDs from the Integrations tab (including the GTM4WP integration, using the container ID configured in GTM4WP), plus the banner text, button labels, consent expiration and position, without overwriting anything you already configured in FrontConsent. Integrations FrontConsent has no equivalent for (Google Ads, Meta Pixel, Microsoft Advertising, Microsoft Clarity, reCAPTCHA blocker) are listed as not imported. The other plugin is never modified: deactivate it yourself after checking the result.

Does FrontConsent hold back WooCommerce order attribution cookies?

Yes. WooCommerce’s order attribution scripts (sourcebuster-js and wc-order-attribution) set sbjs_* cookies on the first page view, so FrontConsent keeps them inert and runs them only after the visitor accepts. Use the frcn_cookie_notice_gated_script_handles filter to change the list, or return an empty array to disable this.

What happens to analytics cookies when a visitor rejects or withdraws consent?

FrontConsent deletes them. Rejecting, withdrawing an earlier acceptance from the cookie icon, or visiting again after rejecting removes the known tracking cookies (Google Analytics _ga/_ga_*/_gid/_gat*, Google Ads _gcl_*, Meta Pixel _fbp/_fbc, Microsoft Clarity _clck/_clsk, Brevo sib_cuid and WooCommerce sbjs_*), including those set on the parent domain. Use the frcn_cookie_notice_purge_cookies filter to change the list; an entry ending in * matches a prefix.

GTM4WP sends its own Consent Mode default. Is that a problem?

FrontConsent already sends a denied default first. To avoid a second, conflicting default (GTM4WP can grant analytics storage), FrontConsent turns GTM4WP’s own consent default off. Return false on the frcn_cookie_notice_suppress_gtm4wp_consent_default filter to keep it.

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“FrontConsent” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“FrontConsent” is vertaald in 1 locale. Dank voor de vertalers voor hun bijdragen.

Vertaal “FrontConsent” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.0.2

  • Added an importer for GDPR Cookie Compliance settings in a new Integrations tab: migrates banner texts, layout, position, policy link and tracking IDs (GTM, GA4, GT-/AW-), enables the banner and reports any integration it couldn’t map.
  • The “Cookie preferences” reopen trigger is now an icon-only cookie button (accessible name via aria-label), and stays hidden until the visitor has made a consent decision.
  • The “Learn more” link now uses the policy page’s own title (WCAG 2.4.4) and keeps readable hover/focus colors regardless of the theme’s link styles.
  • Tracking cookies already set (Google Analytics, Google Ads, Meta Pixel, Microsoft Clarity, Brevo, WooCommerce sbjs_*) are now deleted, including on the parent domain, when the visitor rejects or withdraws consent. The list can be changed with the frcn_cookie_notice_purge_cookies filter.

1.0.1

  • Settings page now uses tabs, so a companion plugin can add its own tab via the new frontconsent_settings_tabs filter, rendering its panel on either frontconsent_settings_form_tab_panels (fields saved through the main settings form) or frontconsent_settings_tab_panels (a panel with its own form, e.g. FrontConsent PRO’s License tab).
  • Added a FrontConsent PRO upsell tab and an inline promo link on the Cookie Notice tab, shown only when FrontConsent PRO isn’t installed.

1.0.0

  • Initial release: cookie consent banner (full-width bar, boxed panel or centered popup) with Accept/Reject actions, custom message, accent color and expiration, extracted from FrontBlocks Site Tools’ Cookie Notice module.
  • Google Tag Manager and GA4 only load after consent is accepted; Google Consent Mode v2 support holds back tracking from other analytics/ads plugins (including Google Site Kit) until the visitor decides.
  • Automatic migration of settings and stats from FrontBlocks’ bundled Cookie Notice module.