GDPR and Data Protection
Make your online WooCommerce store GDPR compliant and protect your customers' data.
In this chapter :

Legal warning - Failure to comply with GDPR exposes you to fines of up to 20 million euros or 4% of worldwide sales. Compliance is not optional.
Understanding GDPR
The General Data Protection Regulation (GDPR) is a European regulation that came into force on May 25, 2018. It frames the processing of personal data on the territory of the European Union.
What is personal data?
Any information that directly or indirectly identifies a person: surname, first name, email, IP address, telephone number, postal address, purchase history, browsing cookies.
In your WooCommerce store, you collect this data massively with every order. You are therefore a "data controller" within the meaning of GDPR, with all the associated obligations.
Fundamental principles
The purpose principle requires you to collect personal data only for a specific, legitimate purpose such as processing the order, delivering the product or invoicing the customer. You must clearly inform the customer of this purpose at the time of collection, without any possible ambiguity.
The principle of minimization requires that you only ask for data that is strictly necessary to achieve the stated purpose. If the e-mail address is sufficient to create an account and process the order, do not ask for the date of birth. Any data collected must be justifiable and proportionate.
Limited retention means defining precise retention periods for each type of data, and automatically deleting or anonymizing expired data. It is strictly forbidden to keep data indefinitely "just in case" without valid legal or contractual justification.
The security principle requires you to rigorously protect data against unauthorized access, accidental loss or malicious destruction. Always use HTTPS to encrypt communications, enforce strong passwords, and maintain regular encrypted backups.
Transparency means clearly informing your customers about the use of their data via a Privacy Policy that is accessible, understandable and written in plain language without obscure legal jargon.
Consents and cookies 🔺
GDPR requires explicit consent to be collected before certain data processing operations.
Consent to registration
When a customer creates an account or places an order, add checkboxes (not pre-ticked!):
"I accept the [Privacy Policy] (Mandatory)" - Required to process the order.
"I agree to receive commercial offers by email (Optional)" - Separate marketing consent.
Customer must actively tick. Pre-checked boxes violate GDPR requirements. Consent must be free, specific, informed and unambiguous.
Cookies banner
Cookies (especially advertising and analytics) require consent before deposit. Install a compliant cookie management banner:
Cookiebot, Axeptio, Tarteaucitron are compliant solutions offering granular configuration: strictly necessary cookies (always active), analytics cookies (Google Analytics), advertising cookies (Facebook Pixel).
Visitors must be able to refuse non-essential cookies easily. An "accept all" button AND a "refuse all" button at the same level of visibility.
Document in your cookie policy: which cookies, purpose, duration, provider. Allow visitors to modify their consent at any time.
Google Analytics and third-party tools
Google Analytics collects personal data such as IP addresses and browsing behavior. To remain compliant with GDPR, you must respect several imperative obligations:
You must activate the anonymization of IP addresses in the Google Analytics configuration to prevent precise identification of visitors. Explicitly mention the use of Google Analytics in your privacy policy, clearly explaining what data is collected and why. Always obtain the prior consent of visitors via your cookie management banner before depositing Google Analytics cookies. Also, sign the Data Processing Amendment with Google, available directly in your Google Analytics account settings, to provide a contractual framework for the processing of your data.
These same obligations apply to Facebook Pixel, Google Ads and absolutely all third-party tools that process or access your visitors' personal data.
Customer rights 🔺
GDPR grants customers several rights that you must respect and facilitate.
Right of access
Customers can request a copy of all their personal data held. You have 1 month to provide a full export free of charge.
WooCommerce includes an export tool: WooCommerce > Tools > Export personal data. Enter the customer's email address, generate the file and send the secure download link.
Right of rectification
Customers can correct inaccurate data. Allow him to modify his information from his account (My Account > Account details).
For more complex modifications, process requests manually within 1 month. Verify the applicant's identity before modification.
Right to erasure ("right to be forgotten")
Customers may request that their data be deleted. You must anonymize/delete except in the case of legal exceptions (mandatory accounting retention).
WooCommerce offers : WooCommerce > Tools > Delete personal data. Enter the email address, select what needs to be deleted/anonymized. Orders remain for accounting purposes, but with customer data anonymized.
Warning: accounting records must be kept according to your local tax authority requirements (typically 5-10 years). You cannot completely delete invoices and orders, only anonymize the associated personal data.
Right of opposition
The customer may refuse certain processing operations (marketing in particular). Every marketing email must contain a functional unsubscribe link. Failure to unsubscribe is illegal and punishable by fine.
WooCommerce automatically manages unsubscribes from transactional emails (order confirmation, status). For newsletters, use a compliant email marketing extension (MailChimp, Sendinblue).
Right to portability
Customers can retrieve their data in a structured, machine-readable format and transfer it elsewhere. The WooCommerce export generates a JSON file satisfying this requirement.
Data retention 🔺
Define clear retention periods and stick to them.
Recommended retention periods
Order data must be kept according to your local tax authority requirements (typically 5-10 years). After this regulatory period, systematically anonymize personally identifiable data, retaining only financial amounts and order references for your accounting records.
Customer accounts can be kept for up to 3 years after the last purchase. After this period of inactivity, automatically send a warning email with the message "Your account will be deleted in 30 days for lack of activity" to give the customer one last chance to reactivate it before final deletion.
Abandoned shopping carts should only be kept for a maximum of 30 days. Your automatic basket recovery reminders are permitted during this short period, but you must delete all basket data afterwards.
Server logs used to analyze visits and ensure site security must be kept for a maximum of 12 months. After this period, these technical traces become disproportionate and must be deleted.
Analytics cookies such as those from Google Analytics have a recommended maximum duration of 13 months, according to data protection authorities' guidelines.
Explicitly document all these retention periods in your Privacy Policy to ensure the full transparency required by GDPR.
Automatic anonymization
Manually, it's unmanageable. Automate with :
WooCommerce GDPR Compliance manages automatic deletion of expired data according to your rules.
GDPR Data Request Form facilitates customer access/deletion requests with validation workflow.
Set up cron jobs (schedules) to delete expired data on a monthly basis. Document each deletion to prove compliance.
WooCommerce GDPR Tools 🔺
WooCommerce integrates basic tools to facilitate compliance.
Built-in settings
In WooCommerce > Settings > Accounts & Privacy, you'll find several essential options:
Deletion of personal data allows customers to request the deletion of their data directly from their "My Account" space. This automated feature facilitates the exercise of the right to be forgotten without constantly requesting your support.
Privacy Policy allows you to link your page detailing your data processing practices. WooCommerce will automatically display a link to this policy during the checkout process, ensuring mandatory transparency.
Checkout boxes allow you to add personalized consents for newsletter marketing, acceptance of terms and conditions, or any other processing requiring explicit consent.
These native tools cover around 60% of basic GDPR needs for a small store. The remaining 40% generally require specialized extensions.
Recommended extensions
To achieve complete and professional GDPR compliance, these specialized extensions are particularly useful:
WooCommerce EU VAT & B2B Compliance simultaneously handles complex European VAT AND critical GDPR aspects such as multiple consents and automated data exports. This all-in-one extension considerably simplifies management for stores selling throughout Europe.
Borlabs Cookie offers a cookie management banner fully compliant with the latest legal requirements, with granular management of cookie categories and deep native integration with WooCommerce. It's a popular choice in Europe for cookie consent management.
WP GDPR Compliance offers a complete suite covering all GDPR aspects: multiple consent management, automated data exports, scheduled deletions, and even a full audit trail tracing all compliance actions performed. This extension is ideal for stores handling large volumes of data.
Mandatory legal documents
Create and keep up-to-date these essential legal documents, permanently accessible in the footer of your site:
The Privacy Policy details exhaustively how you collect, use, store and protect personal data. It must clearly explain customers' rights (access, rectification, deletion, portability, opposition) and provide the contact details of your Data Protection Officer (DPO) if you have appointed one.
The General Sales Conditions constitute the legally binding contract between your company and the customer. They must specify the applicable prices, detailed delivery terms, returns and refunds policy, legal and commercial guarantees offered, and dispute resolution procedures.
Legal Notices formally identify your company with full name, registered office address, name of site host, publication director, and all official identification numbers (business registration number, tax identification number).
The Cookies Policy exhaustively lists all the cookies used on the site, explains the precise purpose of each one, identifies the third-party suppliers concerned, indicates the retention periods, and details how to manage or withdraw consent at any time.
It's essential to have all these legal documents validated by a lawyer specialized in e-commerce, to avoid potentially costly errors in the event of an audit or dispute.
In a nutshell
GDPR imposes strict obligations on the collection and processing of personal data with fines of up to €20M or 4% of worldwide turnover. Obtain explicit and separate consents for marketing (checkbox not pre-ticked mandatory) and document each legal basis for processing. Enable customers to exercise their rights (access, rectification, deletion, portability) easily via automated forms. Limit data retention to a maximum of 3 years after the last order, and automatically delete inactive accounts. Secure data with SSL, encrypted backups and restricted access. Appoint a DPO (Data Protection Officer) if you process large volumes of data, and keep a data processing register.
Next steps 🔺
- Loyalty - Loyalty programs
- Customer Accounts - User configuration
- Customer Management - Overview
Navigation: ← Accounts | GDPR | Next: Loyalty →