WordPress · Privacy & Leads

GDPR Cookie Consent with Intelligent Script Blocking

Block tracking scripts until visitors consent. Google Consent Mode v2. GTM and GA4 integration. Consent logging for audits. Bilingual policy generator. No SaaS fees.

01

Security

Real script blocking prevents unauthorized tracking; consent logging provides audit-ready documentation

02

Conversion Capturing

Google Consent Mode v2 and GTM integration ensure conversion tracking works properly within consent boundaries

03

SEO

Proper consent implementation avoids Google penalties for non-compliant cookie handling

What it's about

WP PM Cookie Consent

Cookie consent is not optional for sites serving EU visitors. But most consent plugins are either too simple (just a banner with no real blocking) or too expensive (monthly SaaS subscriptions for features that belong in a plugin).

PM Cookie Consent delivers real GDPR compliance. Scripts are actually blocked until consent is granted — not just hidden behind a banner. Google Consent Mode v2 is natively implemented. Every consent action is logged for audits. And the entire solution runs locally in your WordPress installation with no external dependencies and no recurring fees.

PM Cookie Consent is included free of charge with a premotion media managed WordPress hosting agency server — for unlimited WordPress installs.

Features

Thought through to the daily workflow.

Every building block is focused on a clear benefit and fits into existing processes.

01
Feature Section

A customizable consent banner with three action buttons: Accept All, Reject All, and Settings. The Settings button opens per-category toggle controls so visitors can choose exactly which cookie categories they allow.

01

Cookie Consent Banner

A customizable consent banner with three action buttons: Accept All, Reject All, and Settings. The Settings button opens per-category toggle controls so visitors can choose exactly which cookie categories they allow. Two layout options: a bottom bar that spans the page width, or a center modal that focuses attention. Fully accessible with ARIA roles, focus trapping, and keyboard navigation. Screen reader compatible.

  • Accept All, Reject All, and Settings buttons
  • Per-category toggle controls in the Settings view
  • Two layouts: bottom bar or center modal
  • Fully accessible: ARIA roles, focus trapping, keyboard navigation
  • Screen reader compatible
  • Customizable colors for primary, background, and text elements
02

Automatic Script Blocking

Output buffer technology intercepts known tracking scripts and prevents them from loading until the visitor grants consent for the relevant category. This is real blocking — scripts do not execute, cookies are not set, and no tracking occurs until explicit consent is given. Blocked scripts are released automatically when consent is granted. No manual script tagging required for common tracking services.

  • Google Tag Manager
  • Google Analytics (GA4)
  • Facebook Pixel
  • LinkedIn tracking
  • Bing conversion tracking
03

Google Consent Mode v2

Native implementation of Google's Consent Mode v2 specification. On page load, all consent signals default to "denied." When a visitor grants consent, the plugin automatically updates all relevant signal types. This ensures your Google Ads, Analytics, and other Google services receive accurate consent signals without additional configuration.

  • Default consent state: denied on page load
  • Automatic signal updates on consent action
  • Signal types: analytics_storage, ad_storage, ad_user_data, ad_personalization
  • Compliant with Google's March 2024 enforcement deadline
04

GTM and GA4 Integration

For returning visitors with existing consent, Google Tag Manager loads server-side on the first page render — no flash of untracked content. First-time visitors get client-side dynamic loading after consent is granted. Direct GA4 support is available as an alternative to GTM. DataLayer enrichment adds post ID, post type, and visitor classification to every pageview event.

  • Server-side GTM injection for returning visitors with consent
  • Client-side dynamic loading after first consent
  • Direct GA4 support as a GTM alternative
  • DataLayer enrichment: post ID, post type, visitor classification
05

Cookie Management

Import cookies directly from Chrome DevTools export. The plugin auto-categorizes known cookies from Google, Facebook, WordPress core, and other common services. Manual add, edit, and delete for full control. Four categories organize all cookies: Necessary (always active), Functional, Statistics, and Marketing. Each cookie entry includes provider name, duration, and a description.

  • Import from Chrome DevTools cookie export
  • Auto-categorization of known cookies
  • Four categories: Necessary, Functional, Statistics, Marketing
  • Manual add, edit, and delete per cookie
  • Provider, duration, and description fields per entry
06

Consent Logging and Audit Trail

Every consent action is logged server-side with a unique consent ID, masked IP address, user agent hash, accepted categories, action type, and timestamp. IP addresses are privacy-safe: the last two octets are removed before logging. Export the full consent log to CSV for regulatory audits. Rate limiting at five logs per minute per IP prevents abuse.

  • Server-side logging of every consent action
  • Privacy-safe IP masking (last two octets removed)
  • Fields: consent ID, masked IP, user agent hash, categories, action type, timestamp
  • CSV export for regulatory audits
  • Rate limiting: five logs per minute per IP address
07

Bilingual Cookie Policy Generator

Automatic cookie policy page generation in German and English. The policy pulls company information from your plugin settings and generates structured content with cookie tables grouped by category. HTML output with copy-to-clipboard makes it easy to paste into any page. Tables include cookie name, provider, purpose, duration, and category.

  • Automatic generation in German and English
  • Company information pulled from plugin settings
  • Cookie tables grouped by category
  • HTML output with copy-to-clipboard
  • Fields per cookie: name, provider, purpose, duration, category
08

Design Customization

Color pickers for primary, background, and text colors let you match the consent banner to your site's brand. Choose between bottom bar and center modal positioning. All color values are validated through WordPress sanitization functions.

  • Primary color, background color, and text color pickers
  • Banner position: bottom bar or center modal
  • Style options for consistent branding
  • WordPress-standard color validation
How it works

A clear path to the result.

  1. 01

    Step 1 — Install and Configure

    Activate the plugin and enter your company details in settings. These are used for the cookie policy generator and consent logging.

  2. 02

    Step 2 — Import or Add Cookies

    Import cookies from Chrome DevTools or add them manually. The plugin auto-categorizes known cookies. Review and adjust categories as needed.

  3. 03

    Step 3 — Configure Integrations

    Enter your GTM container ID or GA4 measurement ID. Enable Google Consent Mode v2. The plugin handles the technical implementation.

  4. 04

    Step 4 — Customize the Banner

    Choose your layout (bottom bar or center modal), set colors to match your brand, and preview the banner appearance.

  5. 05

    Step 5 — Publish

    The consent banner appears automatically for all visitors. Scripts are blocked until consent is given. Consent actions are logged for your records.

Who is it for?

Made for concrete requirements.

The solution is a particularly good fit for these teams, roles and business models.

EU and EEA WordPress Sites

GDPR requires informed consent before setting non-essential cookies. This plugin provides the technical enforcement — actual script blocking — not just a decorative banner.

E-Commerce Stores

WooCommerce and other e-commerce platforms set numerous cookies. Properly managing consent for analytics, marketing, and functional cookies is essential for compliance and customer trust.

Agencies

Deploy a consistent GDPR solution across client sites. Configure once, export settings, and replicate. No per-site SaaS subscriptions eating into project margins.

Sites Using Google Tag Manager or Google Analytics

Native GTM and GA4 integration with Google Consent Mode v2 ensures your analytics and advertising tools receive proper consent signals. No additional consent management platform needed.

Organizations Needing Audit Documentation

Consent logging with CSV export provides the documentation needed for regulatory audits. Every consent action is recorded with timestamp, categories, and masked visitor identifier.

Tech & scope

The key details at a glance.

Version
1.1
WordPress Minimum
6.4
PHP Minimum
8.1
License
GPL-2.0+
Data Storage
Local WordPress database
Telemetry
None
External Dependencies
None
Google Consent Mode
v2
Cookie Categories
4 (Necessary, Functional, Statistics, Marketing)
Policy Languages
German, English
Author
premotion media
Hosting
Included free with managed WordPress hosting agency server
Installs
Unlimited per agency server
FAQ

Frequently asked questions.

Does this plugin actually block scripts or just show a banner?

It actually blocks scripts. Output buffer technology intercepts tracking scripts and prevents them from executing until consent is granted. No cookies are set and no tracking occurs without explicit visitor consent.

Is Google Consent Mode v2 supported?

Yes. Native implementation sets all consent signals to "denied" on page load and updates them automatically when visitors make their choice. Compatible with Google's enforcement requirements.

Do I need a paid subscription?

No. PM Cookie Consent is a one-time installation with no recurring fees, no SaaS dependency, and no external service connection. Everything runs locally in WordPress.

Can I use this with Google Tag Manager?

Yes. The plugin includes native GTM integration with server-side injection for returning visitors and client-side dynamic loading for first-time consent. DataLayer enrichment adds page context to every event.

How is consent logging privacy-safe?

IP addresses have their last two octets removed before logging. User agents are stored as hashes. This provides enough data for audit compliance without storing personally identifiable information.

Does it generate a cookie policy page?

Yes. The bilingual policy generator creates a structured cookie policy in German and English using your company details and cookie inventory. Copy the HTML output to any page on your site.

Which scripts are automatically detected and blocked?

Google Tag Manager, Google Analytics (GA4), Facebook Pixel, LinkedIn tracking, and Bing conversion tracking are automatically detected and blocked. Additional scripts can be managed through the cookie management interface.

Is this plugin included with premotion media hosting?

Yes. PM Cookie Consent is included free with every premotion media managed WordPress hosting agency server. Install it on every WordPress site you manage — no per-site licensing and no add-on fees.

Ready?

Real GDPR Compliance — Not Just a Banner

A cookie banner without script blocking is a liability, not a solution. PM Cookie Consent actually prevents tracking until visitors consent. Google Consent Mode v2, audit-ready logging, and bilingual policy generation are built in. Included free with premotion media managed WordPress hosting.

Discuss your project