Magento 2 GDPR Extension

View Demo

Cookie consent and customer data requests for Magento 2. Visitors choose which cookie groups they allow, and Google Consent Mode v2 passes their choice to Google tags. Customers download, anonymize or delete their data from their account, and old orders are anonymized on a schedule.

  • Cookie banner with required and optional cookie groups
  • Banner only in selected countries and US states
  • Google Consent Mode v2 built in
  • Consent checkboxes on registration, checkout, newsletter and contact forms
  • Consent records with date, time and IP
  • Customers download, anonymize or delete their data
  • Automatic anonymization of old orders, guest orders included
  • Lock Screen until the visitor chooses
Marketplace Approved
Hyvä
Magento Cloud
WCAG
Mage-OS
Compatible with:
Community:
2.3.7 - 2.4.9
Enterprise:
2.3.7 - 2.4.9
Problem

Out of the box, Magento can show only one generic cookie notice and has no tools for privacy requests. Visitors can't choose which cookies they allow, customers email you to get a copy of their data or delete their account, and old orders keep names and addresses for years.

Solution

The extension adds a cookie consent banner with cookie groups and Google Consent Mode v2, consent checkboxes on your forms, and a privacy dashboard where customers download, anonymize or delete their data themselves. On a schedule, it anonymizes old orders, guest orders included.

The General Data Protection Regulation (GDPR) is the EU law on personal data. It requires online stores to ask before storing non-essential cookies, to record consent, and to let customers see, download and delete the data you keep about them.

Beyond the EU, the same tools cover the requests other privacy laws ask for: the right to know and delete under the California Consumer Privacy Act (CCPA), Brazil's LGPD, and the CNIL guidance in France, where you can require a choice before the visitor browses the store. The banner, checkboxes and privacy dashboard come translated into 15 languages besides English, including German, French, Spanish, Italian, Dutch, Polish and Brazilian Portuguese.

Magento 2 GDPR extension features

  • Cookie consent banner with required and optional cookie groups
  • Banner only in the countries and US states you choose
  • Google Consent Mode v2 signals from the visitor's choice
  • Consent checkboxes on registration, checkout, newsletter and contact forms
  • Privacy dashboard: download, anonymize or delete personal data
  • Automatic anonymization of old orders, guest orders included
  • Consent records with date, time and IP
  • Works with Luma, Hyvä, Magento Open Source and Adobe Commerce 2.3–2.4.9

Cookie Notice and Cookie Consent Banner

Magento's built-in Cookie Restriction Mode shows one notice with an Allow Cookies button. This extension replaces it with a cookie consent banner: visitors can agree to all cookies, pick cookie groups in the settings, or decline the optional ones. By default, only essential cookies are allowed until they choose.

You split cookies into required groups (for example, Magento core cookies) and optional ones, such as statistics and marketing, and edit the cookie notice text and the link to your cookie policy. Lock Screen keeps visitors from using the store until they make a choice.

  • The banner shows only in the countries and US states you select. The country comes from a GeoIP database shipped with the extension, so visitor IPs aren't sent to an outside service.
  • You can have the banner ask visitors again when you add a cookie group or a cookie.
  • Visitors can change their choice later from a footer button, a widget you place anywhere, or their account.
  • Turn on the log of blocked cookies to spot cookies from a new extension and add them to a group. It records real traffic and doesn't scan your site.

Google Consent Mode v2

Google Consent Mode v2 is built into the extension, with no add-on to buy. Once you turn it on, the default state (denied or granted) goes to the data layer before your Google Tag Manager container loads, and the update follows as soon as the visitor makes a choice.

Cookie groups map to the seven consent signals: statistics to analytics_storage, marketing to ad_storage, ad_user_data and ad_personalization, functionality to functionality_storage and personalization_storage, essential to security_storage. Google tags then adjust what they collect. The extension doesn't stop the tags from loading.

To send full ecommerce events to GA4 and Google Ads under these consent signals, pair it with our GA4 and Google Tag Manager extension.

Consent Checkboxes and Consent Records

Add required consent checkboxes, such as accepting your privacy policy, to four forms: registration, checkout, newsletter sign-up and Contact Us. You can add several checkboxes per form, each with its own text and store views. None of them is ticked in advance.

Each consent is recorded in the admin with its type, date, time and IP, and customers see their current consents in their account. Cookie choices are recorded for signed-in customers; a guest's cookie choice stays in the guest's browser.

Let Customers Delete Their Account and Download Their Data

Customers open the privacy dashboard in their account and handle requests themselves, instead of emailing your support. Every action asks for their password again.

  • Download: a CSV file with their account details, addresses and order details, available right away
  • Anonymize: names, addresses and phone numbers in the account and orders are replaced right away; not available while the customer has open orders
  • Delete account: the request waits for your approval. The admin shows a notice about pending requests, and you can approve or reject several at once. After approval, the extension anonymizes the orders and deletes the account.

Automatic Data Retention

The GDPR says not to keep personal data longer than you need it. Rather than cleaning the database by hand, set the periods once:

  • Orders older than the period you set (730 days by default) are anonymized every night, guest orders included, so they stay in your sales reports without names and addresses.
  • Accounts without orders for a set period (365 days by default) get a deletion request, which you approve like any other.

Need records for your accountant? Order Information Protection keeps recent orders, customer accounts and addresses from being anonymized or deleted at a customer's request for the number of days you set.

Among stores using the extension, few turn on automatic deletion, and many more turn on automatic anonymization. Agree on the periods with your legal advisor.

Still comparing GDPR and cookie consent extensions? Our comparison of the main Magento 2 GDPR and cookie consent extensions puts nine of them side by side, along with hosted cookie platforms. It compares price, scope (data rights or cookies only), what is blocked before consent and Consent Mode v2, and says where another option is the better fit.

Give customers control of their data and visitors a real cookie choice, with tools that cover the GDPR requests your store gets.
No hidden fees
Our developers install the extension on your store and configure it for your setup, free of charge.
Lifetime access to source code
Access to free support and updates for 1 year
Updates and support prolongation - $132

Pay today $219 for the first year.

Then $132 for updates and support services per year.

Cancel anytime.

30 days money back guarantee
See it in action!
Pick a quick tutorial to learn about various aspects of this extension
Customer Reviews 19
Earn points for your review about this extension modules. $1 = 10 points
Write Your Own Review

check-circle You submitted your review for moderation.

BBMC Verified Buyer
From Carol Stream, United States
Using the module for over 1 month
Straight forward
Was able to implement it with my GTM solution, and it works so far with server-side and first-party, but I am still testing. So far so good!
Also installed:
Help Desk MX,  Knowledge Base,  Full Page Cache Warmer,  Advanced Product Feeds,  Follow Up Email,  Reward Points,  Promo Banners and 28 more
VO Verified Buyer
From Manchester, United Kingdom
Using the module for over 1 year
Works Well
Works as expected and works with Hyva.
Also installed:
Product Labels,  Advanced Product Feeds
HC Verified Buyer
From Cambridge, United Kingdom
Using the module for over 1 year
Works as expected
Took some tinkering but works well
Also installed:
Layered Navigation,  Follow Up Email,  Advanced SEO Suite
Lukas Verified Buyer
From Gdańsk, Poland
Using the module for 15 days
Very good extension
Works very well with Hyva Theme.
Also installed:
Blog MX,  Advanced SEO Suite,  Improved Sorting,  Mass Product Actions,  Order Management,  Admin Bookmarks,  Product Labels and 17 more
Maarten Verified Buyer
From Amersfoort, Netherlands
Using the module for 2 months
Works very well
With some tweaking in tagmanager, the our site now fits the consentmode v2 law.
Also installed:
RMA,  Advanced Reports,  Advanced SEO Suite,  Google PageSpeed Optimizer,  Product Labels,  Reward Points
Manual & Support
Need more help?

Save time by starting your support request online and we'll connect you to an expert.

Frequently asked questions
chevron-down chevron-right

Does the extension make my Magento store GDPR compliant?

No extension makes a store compliant on its own. Compliance also depends on your privacy policy, the services you use and how you handle data. The extension gives you the tools for the GDPR requirements a store meets on the website: cookie consent, consent records, customer data requests and data retention. Check your setup with a legal advisor.

chevron-down chevron-right

Does it support Google Consent Mode v2, and how do I set it up?

Yes, Consent Mode v2 is built into the extension. Turn it on in the cookie consent settings and choose the default state, denied or granted. The extension writes the default before your Google Tag Manager container loads and sends an update with the seven consent signals, including ad_user_data and ad_personalization, once the visitor chooses. See how to configure Google Consent Mode.

chevron-down chevron-right

Will my GA4 and Google Ads numbers drop after I enable cookie consent?

Some drop is expected: visitors who decline statistics or marketing cookies send less data. To keep it to what consent requires:

  • Map your cookie groups to the right signals (statistics to analytics_storage, marketing to the three ad signals). A signal stays denied if its group isn't in the banner.
  • Show the banner only where you need it. In other countries the banner is hidden and the default goes to Google as granted.
  • Pick the default state that fits your markets: denied for the EU, granted where consent isn't required up front.
chevron-down chevron-right

Can customers delete their own account?

Yes. In the privacy dashboard in their account, customers request account deletion after entering their password again. The request waits for your approval in the admin; once approved, the extension anonymizes their orders and deletes the account. Downloading and anonymizing data happen right away, without approval. See how account removal works.

chevron-down chevron-right

What data can customers download?

A CSV file with their account details (name, date of birth, gender, tax/VAT number and similar fields), their addresses and their order details. The email address of the account and the products in orders are not included.

chevron-down chevron-right

What does the consent log record, and for whom?

Each consent from the checkboxes and the cookie banner is recorded with its type, date, time and IP. Cookie choices are recorded for signed-in customers, who also see their current consents in their account. A guest's cookie choice is kept in the guest's browser for a year and isn't written to the database.

chevron-down chevron-right

How is it different from Magento's built-in Cookie Restriction Mode?

The built-in mode shows one notice with an Allow Cookies button. The extension adds required and optional cookie groups, a Decline button, Lock Screen, the banner only in the countries and US states you choose, Google Consent Mode v2, and the option to ask again when you add cookies. Until the visitor chooses, it allows only essential cookies.

chevron-down chevron-right

Can I show the banner only to EU visitors or in specific US states?

Yes. Select the countries and US states where the banner appears. The visitor's location comes from a GeoIP database shipped with the extension, and it takes the Cloudflare visitor IP into account. Elsewhere the banner is hidden.

chevron-down chevron-right

Are optional cookie groups unticked by default?

By default, optional groups in the cookie settings window start switched on. For EU stores, set Optional Groups Enabled to No, so visitors tick the optional groups themselves.

chevron-down chevron-right

Does it cover the CCPA?

It covers the rights to know and delete: Californian customers download, anonymize or delete their data from their account, and you can show the banner only in the US states you choose. It doesn't add a "Do Not Sell or Share My Personal Information" link or Global Privacy Control support.

chevron-down chevron-right

Can old orders be anonymized automatically?

Yes. Set a retention period (730 days by default) and every night the extension anonymizes older orders, guest orders included. Orders stay in your sales reports without names and addresses.

Changelog
Version 1.8.6Nov 24, 2026
Schedule for processing approved requests: a new "Approved Requests Processing Schedule" setting under GDPR › General Settings sets how often approved GDPR requests are processed, for example once a day at a quiet hour. It accepts a cron expression. The default is still every minute, so existing stores see no change.
The admin notice on a cookie's "Lifetime" field now says that the value is only shown to visitors and does not change the cookie's real expiry.
Anonymized orders can no longer be opened through the storefront "Orders and Returns" form. Before, anyone who knew an anonymized order's number could open it by entering "Anonymized" as the last name and ZIP code. The anonymized last name and postcode are now unguessable, and the order's protect code is replaced.
Anonymized e-mail addresses now use the reserved, undeliverable anonymized.invalid domain. Before, they used anonymized.com, a real domain that receives mail, so a shipment, credit memo or order comment e-mail sent after anonymization could reach a third party. On Adobe Commerce the archived-order grids are updated too.
The privacy pages for anonymizing, removing or downloading data and managing consents now send a guest to the login page. Before, only the privacy dashboard required a login.
Customers who signed up through social login and have no password now see the "no password" notice on the privacy request forms.
Wildcard cookie codes such as _ga_[*] now match the right cookies everywhere: in the storefront cookie filter, in the server-side filter and in the Rejected Cookies report. Before, the report hid unrelated cookies such as _gali and _gat, and short wildcard codes were not matched at all.
Deleting a cookie group no longer deletes the cookie with the same ID and leaves the group in place.
Approving or denying a GDPR request that has already been deleted now shows "This request no longer exists." instead of an error.
If deleting a cookie fails, the admin now returns to that cookie instead of an empty "New Cookie" form.
An unreadable GeoIP database is now logged at most once an hour instead of failing silently.
Version 1.8.5Nov 18, 2026
The GDPR cookie, consent, and request pages in the admin now respect the permissions set for each admin role.
Version 1.8.4Nov 10, 2026
Another website can no longer record a cookie-consent choice for your visitors, or add entries to the Rejected Cookies report, through a plain link. The storefront "Agree All", "Decline" and rejected-cookie requests now accept only POST requests. The cookie bar and cookie settings dialog already send those, so they work as before.
The consent checkbox edit page now shows its "Delete Checkbox" button, so you can delete a checkbox from its edit page. Before, the button never appeared, and its label said "Delete Cookie Group". Opening a checkbox that no longer exists now says "This checkbox no longer exists." instead of a cookie group message.
Version 1.8.3Nov 5, 2026
The Approve and Deny bulk actions on the GDPR requests grid now apply to every pending request type, not only removal requests.
Checkout consent is now recorded only when an order is actually placed, not when the shopper is sent back to the cart.
The cookie settings link in the footer is now a real button, so it opens reliably with a keyboard or screen reader.
The cookie settings toggles now line up correctly on the Luma theme.
The cookie bar and settings now display correctly on Hyva themes.
Version 1.8.2Oct 28, 2026
Removing a customer's data now fully clears their customer ID, so a completed removal request leaves nothing linking back to them.
Anonymizing a customer now clears every order address, including ones a shopper typed in by hand at checkout.
Anonymizing now clears both the billing and the shipping address even when an order reused the same saved address for both.
Anonymizing a customer now also clears their cart and refreshes the order grid, so no personal data is left showing there.
Setting the GDPR consent feature to "Enabled = No" now hides the consent checkboxes at checkout and stops recording both form and cookie consent.
Reasons to choose Mirasvit
Client focusing and satisfaction

These are our primary. A major portion of our new clients come from referrals from our existing clients. Our professional team of developers, marketers and support staff have invested the best knowledge and experience in the field into our work, so you know you can come back to us again and again.

Remarkable support

One year free and high quality support. We go to great lengths to provide maximum satisfaction with every module you have purchased in our store. By helping you with installation, configuration, answering your every question, we do all our best to eliminate any possible problems.

Risk-free Investment

30-days money back guarantee. If you are not satisfied with our extension performance for any reason, we provide a full refund.

Constant improvements and upgrades

We constantly add new features to all our modules, and are always interested in hearing your opinion and implementing your suggested features in our future developments.

Comprehensive Documentation

We provide an expanded user guide for every aspect of our extension, so you can find answers for all your burning questions.

Unencrypted source code of our products

You can customize extension according to your needs and requirements.

Usability and Performance

The Module is easy to install and upgrade, just follow our step-by-step user guide. Additionally, the extension is ready to use with the Hyvä theme.

Ready for Magento Cloud

No core modifications. The extension has been tested in a Magento Cloud environment and is fully compatible with it.

Loading...