Title: GDPR Compliance &amp; Cookie Consent
Author: Mortgage Calculator
Published: <strong>25. juni, 2019</strong>
Last modified: 28. oktober, 2026

---

Søg plugins

![](https://ps.w.org/gdpr-compliance-cookie-consent/assets/banner-772x250.png?rev
=3763059)

![](https://ps.w.org/gdpr-compliance-cookie-consent/assets/icon-256x256.png?rev=
3763059)

# GDPR Compliance & Cookie Consent

 Af [Mortgage Calculator](https://profiles.wordpress.org/mlcalc/)

[Download](https://downloads.wordpress.org/plugin/gdpr-compliance-cookie-consent.1.7.1.zip)

 * [Detaljer](https://da.wordpress.org/plugins/gdpr-compliance-cookie-consent/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/gdpr-compliance-cookie-consent/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/gdpr-compliance-cookie-consent/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/gdpr-compliance-cookie-consent/#developers)

 [Support](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/)

## Beskrivelse

GDPR Compliance & Cookie Consent is a free WordPress plugin that helps you handle
visitor consent and personal data requests on your website. It adds a customizable
cookie consent banner, consent checkboxes for comments and popular form and e-commerce
plugins, and a form where visitors can ask for a copy of their personal data or 
ask for it to be erased.

The plugin is a tool to help you work towards GDPR compliance. It does not give 
legal advice and does not make a site compliant on its own: you remain responsible
for your privacy policy, your cookies and the way you process personal data.

#### Features

 * Cookie consent banner with your own text, button label, colors, position and 
   optional custom CSS, plus an optional Decline button
 * Google Consent Mode v2: Google tags (Analytics, Ads, Tag Manager) wait for consent,
   and the visitor’s choice is passed on to them (see “Google Consent Mode v2” below)
 * Works with page caching: the banner is shown or hidden in the browser from the
   consent cookie, so cached pages are correct for every visitor
 * Adjustable consent expiry time (default six months)
 * Optional cookie blocking until the visitor accepts the banner (see “What cookie
   blocking does” below)
 * Link to your Privacy Policy page from the banner, with custom link text
 * Consent checkboxes for WordPress comments, Contact Form 7, Gravity Forms, WooCommerce,
   BuddyPress and MailChimp forms, each with its own label and error message
 * Data access and erasure form for visitors, using WordPress’ built-in personal
   data export and erasure requests with an email confirmation link
 * Gutenberg block “Data Access & Erasure Request”, shortcode and widget to place
   the data request form anywhere
 * Translation-ready
 * Comment consent is recorded: the comments list shows when each commenter accepted

#### How to use

After activation open “GDPR” in the admin menu. It has tabs for General (banner,
cookie blocking, expiry, colors and position), Privacy Policy, Integrated plugins
and Data access & to be forgotten. Click “Save changes” on each tab.

To offer visitors the data access and erasure form, add the “Data Access & Erasure
Request” block to a page, or use this shortcode (optional attributes `title` and`
description`), or the “GDPR Compliance Widget”:

    ```
    [stm-gpdr-data-access]
    ```

#### Google Consent Mode v2

The option “Google Consent Mode v2” (General tab, on by default, active while the
consent banner is enabled) prints the Consent Mode default as early as possible 
in the page head: `ad_storage`, `ad_user_data`, `ad_personalization` and `analytics_storage`
are denied, with `wait_for_update` set to 500 ms, together with the `dataLayer`/`
gtag` stub. When the visitor accepts, declines, or a category is changed, the plugin
calls `gtag('consent', 'update', ...)`. Analytics maps to `analytics_storage`; marketing
maps to `ad_storage`, `ad_user_data` and `ad_personalization`. “Accept” grants both,“
Decline” denies both, and returning visitors get their stored choice applied as 
an update on every page load. This happens in the browser from the consent cookie,
so it works with cached pages. Themes and other plugins can set categories separately
with `window.stmGdprSetConsent({analytics: true, marketing: false})`, and listen
to the `stm_gdpr_consent` event. Your Google tags must load after the plugin’s snippet(
the plugin prints it with priority 1 in `wp_head`) and must respect Consent Mode,
which Google Tag and Google Tag Manager templates do by default.

#### What cookie blocking does

When the “Block Cookies” option is on, until a visitor accepts the banner the plugin
stops WordPress and other PHP plugins from setting cookies on the front end of your
site, and a small script prevents cookies being written from JavaScript. It does
not scan your site, categorize cookies, or stop third-party scripts (for example
analytics or advertising tags) from loading, so check those separately.

#### What this plugin does not do

 * It does not provide legal advice or a legal guarantee
 * It does not write your privacy policy for you
 * It does not automatically scan or classify the cookies used on your site

## Skærmbilleder

[⌊The cookie consent banner with Accept and Decline buttons.⌉⌊The cookie consent
banner with Accept and Decline buttons.⌉[

The cookie consent banner with Accept and Decline buttons.

[⌊The data access and erasure request form (shortcode [stm-gpdr-data-access] or 
the Data Access & Erasure Request block).⌉⌊The data access and erasure request form(
shortcode [stm-gpdr-data-access] or the Data Access & Erasure Request block).⌉[

The data access and erasure request form (shortcode [stm-gpdr-data-access] or the
Data Access & Erasure Request block).

[⌊Data access settings: messages and CSS classes for the request form.⌉⌊Data access
settings: messages and CSS classes for the request form.⌉[

Data access settings: messages and CSS classes for the request form.

[⌊Consent checkbox settings for integrated plugins such as WordPress comments, Contact
Form 7 and WooCommerce.⌉⌊Consent checkbox settings for integrated plugins such as
WordPress comments, Contact Form 7 and WooCommerce.⌉[

Consent checkbox settings for integrated plugins such as WordPress comments, Contact
Form 7 and WooCommerce.

[⌊General settings: banner, Decline button and Google Consent Mode v2.⌉⌊General 
settings: banner, Decline button and Google Consent Mode v2.⌉[

General settings: banner, Decline button and Google Consent Mode v2.

[⌊The Data Access & Erasure Request block in the block editor, with its settings
in the sidebar.⌉⌊The Data Access & Erasure Request block in the block editor, with
its settings in the sidebar.⌉[

The Data Access & Erasure Request block in the block editor, with its settings in
the sidebar.

## Blokke

Dette plugin giver 1 blok.

 *   Data Access & Erasure Request A form where visitors can ask for a copy of their
   personal data or ask for it to be erased.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Set Up Page in Menu -> GDPR.

## FAQ

### Does it block cookies before consent?

If you enable “Block Cookies” in the General tab, yes for cookies set by WordPress
and PHP plugins on the front end and for cookies written by JavaScript on your pages,
until the visitor accepts the banner. It does not stop third-party scripts such 
as analytics or ad tags from loading, so those need to be handled separately, for
example by loading them only after consent.

### Does it make my website GDPR compliant on its own?

No. It helps with several parts of the job, such as a consent banner, consent checkboxes
and data requests, but compliance also depends on your privacy policy, how you process
data and which services you use. If you need legal certainty, ask a qualified lawyer.

### How do visitors request data deletion or a copy of their data?

Place the `[stm-gpdr-data-access]` shortcode on a page (or add the “GDPR Compliance
Widget”). A visitor enters their email address and chooses “Export Personal Data”
or “Erase Personal Data”. WordPress sends a confirmation email, and after the visitor
confirms, the request appears in your admin under Tools > Export Personal Data or
Erase Personal Data, where you process it.

### Which forms get consent checkboxes?

WordPress comments, Contact Form 7, Gravity Forms, WooCommerce, BuddyPress and MailChimp
forms. Enable each integration on the “Integrated plugins” tab and edit its checkbox
label and error message.

### Is consent logged?

For WordPress comments the date and time the commenter ticked the checkbox is stored
with the comment and shown in the comments list. For the cookie banner, acceptance
is remembered in a cookie on the visitor’s browser (and, for logged-in users, in
their user profile data) until it expires; the plugin does not keep a central log
of banner acceptances.

### Does it work with caching plugins?

Yes. The banner is always printed hidden and the visitor’s browser shows it only
when there is no consent cookie, so page caches (WP Rocket, W3 Total Cache, LiteSpeed,
Cloudflare and others) can serve the same HTML to everyone and no cookie needs to
be excluded from the cache. Saving the plugin settings also clears the page cache
of the common caching plugins. Cookie blocking and Consent Mode also run in the 
browser. If you still see an old banner after changing settings, purge your cache
once.

### Does it support Google Consent Mode v2?

Yes, it is on by default; see “Google Consent Mode v2” in the description. You can
switch it off in the General tab. It works with Google Tag Manager, GA4 and Google
Ads tags that honour Consent Mode, including those added by Site Kit.

### How do I add the request form?

Add the “Data Access & Erasure Request” block in the block editor, or place the `[
stm-gpdr-data-access]` shortcode on a page, or use the “GDPR Compliance Widget”.

### Can I show a Decline button?

Yes. New installs show it by default; on sites that already had the plugin, tick“
Decline button” on the General tab. Under the GDPR, declining should be as easy 
as accepting. A declined visitor does not see the banner again until the consent
cookie expires, Consent Mode stays denied, and the cookie blocker (if enabled) stays
active.

### The banner or the editor misbehaves in a page builder.

The banner, the cookie blocker and Consent Mode are skipped in the Customizer preview
and in the WPBakery, Elementor, Divi, Beaver Builder, Oxygen, Brizy, Thrive and 
SiteOrigin editors.

## Anmeldelser

![](https://secure.gravatar.com/avatar/cf5ed2a48ab79526821d65ba3bace5cc4c5b42140453dfbf0f22f2ec6dc34d1b?
s=60&d=retro&r=g)

### 󠀁[As expected](https://wordpress.org/support/topic/as-expected-24/)󠁿

 [Mortgage Calculator](https://profiles.wordpress.org/mlcalc/) 8. april, 2024

Works as expected, old bugs fixed

![](https://secure.gravatar.com/avatar/e69e530a82c026307a5bf26ee12b911d3ef1913f944303aa603f5b92d746631b?
s=60&d=retro&r=g)

### 󠀁[Works perfectly](https://wordpress.org/support/topic/works-perfectly-2747/)󠁿

 [gdprcompliancewp](https://profiles.wordpress.org/gdprcompliancewp/) 25. marts,
2024

Currently works perfectly!

![](https://secure.gravatar.com/avatar/f574b7574497b879ea7fd8f3f535161c9266546b82160cd7fcdf8f8aae81cd98?
s=60&d=retro&r=g)

### 󠀁[Really it’s nice plugin](https://wordpress.org/support/topic/really-its-nice-plugin/)󠁿

 [Maruf Hasan](https://profiles.wordpress.org/marufhasan/) 15. august, 2021 1 svar

please add the save button

![](https://secure.gravatar.com/avatar/e2a4936dd231f2f25ebd92a17ef61a7daa90117a3d342b53deeff0d6912602e6?
s=60&d=retro&r=g)

### 󠀁[Cookies window opens on every page of the site](https://wordpress.org/support/topic/cookies-window-opens-on-evey-page-of-the-site/)󠁿

 [Jak](https://profiles.wordpress.org/123456jk/) 21. februar, 2021 1 svar

Hi I have installed and set up the plugin and so far everything is working ok. The
cookies window shows up ok on the homepage, and after I click to agree the cookies
button, the cookies window is closing. Now the problem with this plugin is that 
every time when I open a new page on the site, the cookies window opens and asking
to accept cookies. It should open once when you enter the homepage of the site and
not on any webpage again and again. Is there a fix to it as otherwise it cannot 
be used as it is now?

![](https://secure.gravatar.com/avatar/995f0dcbc930ee5ec18634d65bcd820f55afaa615f3c8cb448519f7d566d1303?
s=60&d=retro&r=g)

### 󠀁[cache plugin conflicts](https://wordpress.org/support/topic/cache-plugin-conflicts/)󠁿

 [luis3alvarez](https://profiles.wordpress.org/luis3alvarez/) 3. december, 2020

waste of time, cache plugin conflicts

![](https://secure.gravatar.com/avatar/e4ac0e84374061410aae57a50665611f9e22a0999413ce5a5ac35ceed1249e53?
s=60&d=retro&r=g)

### 󠀁[I dont understand the 5 star reviews.](https://wordpress.org/support/topic/i-dont-understand-the-5-star-reviews/)󠁿

 [yourypro](https://profiles.wordpress.org/yourypro/) 4. juli, 2020 1 svar

I dont know if its a joke or its just to trick us into buying the pro version but
the developer really made the plugin without a save button 😂 Would be a great plugin
but its no use.

 [ Læs alle 9 anmeldelser ](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/)

## Bidragsydere & udviklere

“GDPR Compliance & Cookie Consent” er open source-software. Følgende personer har
bidraget til dette plugin.

Bidragsydere

 *   [ Mortgage Calculator ](https://profiles.wordpress.org/mlcalc/)

“GDPR Compliance & Cookie Consent” er blevet oversat til 3 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/gdpr-compliance-cookie-consent/contributors)
for deres bidrag.

[Oversæt “GDPR Compliance & Cookie Consent” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/gdpr-compliance-cookie-consent)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/gdpr-compliance-cookie-consent/),
tjek [SVN repository](https://plugins.svn.wordpress.org/gdpr-compliance-cookie-consent/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/gdpr-compliance-cookie-consent/)
via [RSS](https://plugins.trac.wordpress.org/log/gdpr-compliance-cookie-consent/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.7.1

 * Fixed typos: “Coockie Consent” in the settings and “Your request have been submitted”
   in the default data request message (sites that kept the default message get 
   it corrected).

#### 1.7.0

 * Added Google Consent Mode v2 (on by default): consent defaults are printed in
   the page head, and accept, decline or category changes update Google tags. Returning
   visitors get their stored choice applied on load.
 * Added a Decline button: on by default for new installs, off for existing sites
   until you enable it (General tab).
 * Fixed the banner coming back on every page behind a page cache: it is now shown
   or hidden in the browser from the consent cookie, and an expired nonce on a cached
   page no longer prevents the choice from being saved.
 * Fixed the JavaScript cookie blocker, which blocked the consent cookie itself 
   and was only loaded for visitors without the cookie.
 * Saving the settings now clears the page cache of WP Rocket, W3 Total Cache, WP
   Super Cache, SiteGround Optimizer and LiteSpeed Cache.
 * The banner, cookie blocker and Consent Mode no longer run inside page builder
   editors such as the WPBakery frontend editor.
 * Added a Gutenberg block for the data access and erasure request form; the shortcode
   accepts title and description.
 * Translation-ready: remaining strings, including the default texts, can be translated.
 * Review reminder in the admin after two weeks, dismissible.
 * Requires WordPress 5.7 or higher.

#### 1.6.3

 * Security hardening: all output of the cookie popup, consent checkboxes, widget
   and data access form is now escaped; popup colours, position and custom CSS are
   validated.
 * Replaced the bundled CMB2 library with a native WordPress Settings API page. 
   Stored settings are unchanged.
 * Fixed a fatal error when a comment was submitted without ticking the consent 
   checkbox, and the Contact Form 7 consent tag handler.
 * Translations load through WordPress itself; settings load their admin assets 
   only on the plugin page; the consent cookie is set with the Secure and SameSite
   attributes.

#### 1.6.2

 * Tested with WordPress 7.1. Outbound credit links now carry rel=”nofollow”.

#### 1.6

 * Added default values. Popup enabled by default

#### 1.5

 * Minor bug fix.

#### 1.4

 * Minor bug fix.

#### 1.3

 * Security update.

#### 1.2

 * Minor bug fixes.

#### 1.1

 * WPML Translation bug fixed.
 * Minor bug fixes.

#### 1.0.1

 * Contact Form 7 conflict fixed.

#### 1.0

 * First Version of Plugin.

## Meta

 *  Version **1.7.1**
 *  Senest opdateret **3 uger siden**
 *  Aktive installationer **4.000+**
 *  WordPress-version ** 5.7 eller højere **
 *  Testet op til **7.1.4**
 *  PHP-version ** 7.4 eller højere **
 *  Sprog
 * [Dutch](https://nl.wordpress.org/plugins/gdpr-compliance-cookie-consent/), [English (US)](https://wordpress.org/plugins/gdpr-compliance-cookie-consent/),
   [Russian](https://ru.wordpress.org/plugins/gdpr-compliance-cookie-consent/) og
   [Spanish (Spain)](https://es.wordpress.org/plugins/gdpr-compliance-cookie-consent/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/gdpr-compliance-cookie-consent)
 * Tags
 * [consent mode](https://da.wordpress.org/plugins/tags/consent-mode/)[cookie banner](https://da.wordpress.org/plugins/tags/cookie-banner/)
   [cookie consent](https://da.wordpress.org/plugins/tags/cookie-consent/)[GDPR](https://da.wordpress.org/plugins/tags/gdpr/)
   [GDPR Compliance](https://da.wordpress.org/plugins/tags/gdpr-compliance/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/gdpr-compliance-cookie-consent/advanced/)

## Bedømmelser

 2.7 ud af 5 stjerner.

 *  [  4 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/?filter=3)
 *  [  1 2-stjernet anmeldelse     ](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/?filter=2)
 *  [  5 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/reviews/)

## Bidragsydere

 *   [ Mortgage Calculator ](https://profiles.wordpress.org/mlcalc/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/gdpr-compliance-cookie-consent/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://www.calculator.io/)