Replai – Cookie Consent Banner for GDPR, CCPA & Google Consent Mode (self-hosted)
Replai – Cookie Consent is a privacy-first cookie consent plugin — a self-hosted alternative to subscription-based consent services. The banner, the consent log and the prior blocking all run on your own WordPress by default: no external calls are made unless you explicitly connect the optional REPLAI service (see “External services”).
- Prior blocking (before consent): the most common third-party scripts (Google Analytics, Google Tag Manager, Meta Pixel, Google Ads, LinkedIn, TikTok, Hotjar, Microsoft Clarity, Matomo, YouTube, Vimeo, Google Maps…) are automatically neutralized until the visitor consents. Add extra domains with one line each.
- Google Consent Mode v2 (Basic or Advanced): consent state is set to “denied” by default and updated automatically when the visitor chooses, so Google Analytics 4 and Google Ads receive the correct signals. In Advanced mode (recommended) Google tags are allowed to load and send cookieless pings (with
url_passthroughandads_data_redaction), recovering anonymous data and modeling conversions even before consent, while every other tracker stays blocked. - Region-based consent: ask for prior consent everywhere, or opt-in only in the EU/EEA/UK/Switzerland and opt-out where the law allows it (more conversions outside the EU). Visitor country is detected from a hosting/CDN header (Cloudflare and others) with a filter to plug in your own GeoIP; if there is no signal, prior consent is applied for safety.
- Granular categories: Necessary (always on), Preferences, Statistics and Marketing, with an “Accept all”, “Reject all” and “Customize” flow.
- Consent log (GDPR proof): every consent is stored locally (date, policy version, choices, hashed IP, page) and can be exported to CSV. IP addresses are never stored in plain text (hashed with a plugin-specific salt).
- Fully customizable banner: bottom bar or corner box, light/dark theme, accent color, custom title and message, links to your privacy and cookie policies.
- Embeddable cookie declaration: the
[replai_cookie_declaration]shortcode renders a ready-to-paste page for your cookie policy — a table per category with provider, purpose, duration and type for every declared cookie, plus the visitor’s current consent (per-category status, consent ID and date).[replai_cookie_settings]reopens the preferences panel. - Global Privacy Control (GPC): the US GPC browser signal is honored automatically — non-essential categories are rejected and logged without an intrusive banner.
- Automatic banner language: the banner follows the visitor’s browser language across 7 languages, independently of the site language.
- Optional REPLAI monitoring: if you are a REPLAI customer, you can add a REPLAI token to monitor this installation from your REPLAI dashboard. This is off by default; nothing is sent unless you add a token.
External services
This plugin can optionally connect to REPLAI (https://app.replai.net), a service by REPLAI, to let REPLAI customers monitor their cookie-consent installation from the REPLAI dashboard.
This connection is optional and disabled by default. No data is sent to REPLAI unless the site administrator explicitly enters a REPLAI token in Settings → Banner → “REPLAI connection”. If the token field is empty, the plugin makes no external calls.
When a token is configured, the plugin contacts REPLAI in these cases:
- When you save or test the token: a request is sent to validate the token (the token/API key is sent).
- Periodically (a daily WordPress cron event) and in real time when a visitor gives consent: the plugin sends site information (site URL, site name, WordPress/PHP/plugin versions, locale and the banner settings), consent aggregates (totals and per-category opt-ins) and individual consent events (consent id, date, chosen categories, method, page URL, a hashed IP — never the raw IP — and the browser language).
REPLAI terms of service: https://replai.net/en/termsandconditions/ REPLAI privacy policy: https://replai.net/en/privacy-policy/
