Skip to content
14+ years building on WordPress / Replies in under 5 hours
WooCommerce 14 min read · Updated November 2026

WooCommerce GDPR, CCPA and PCI Compliance: How to Protect Customer Data

Photo of Ajay Khandal
Ajay Khandal
WordPress Developer
How to Stay GDPR & CCPA Compliant with Your WooCommerce Store
On this page
Key takeaways

A WooCommerce store meets GDPR, CCPA and PCI DSS when it collects only the data it needs, blocks tracking until consent, publishes a specific privacy policy, answers data requests on time and keeps card numbers off its server.

  • GDPR covers any store offering goods to people in the EU; the CCPA only applies above set thresholds, starting at $26.625 million in annual revenue.
  • Turn on "Remove personal data from orders on request" in WooCommerce > Settings > Accounts and Privacy, because it's off by default.
  • A consent plugin must block analytics and ad scripts before the visitor chooses, and pass the choice to Google Consent Mode and the WP Consent API.
  • With a hosted or embedded payment form, most stores file the short PCI questionnaire, SAQ A.

A WooCommerce store meets GDPR, CCPA and PCI DSS when it collects only the customer data it needs, blocks tracking until visitors agree to it, explains its data use in a specific privacy policy, answers access and deletion requests on time, and keeps card numbers off its own server. Each law covers a different part of that list, and WooCommerce has built-in settings for most of it.

This guide works through the store itself: what WooCommerce saves with every order, which law applies to you, the settings that control stored data, where PCI DSS fits, and what to do when something goes wrong. It’s practical guidance from building and maintaining WooCommerce stores, and it isn’t legal advice, so have a lawyer check your final policy if you sell in volume.

What Customer Data Does WooCommerce Store, and Where?

Every WooCommerce order saves the customer’s billing and shipping name, address, email and phone number, plus their IP address and browser user agent. Registered customers also get a user account. Since version 8.5, Order Attribution saves the traffic source and device type too. Card numbers stay with your payment gateway, which returns a token instead.

On stores using High-Performance Order Storage, which has been the default for new installs since WooCommerce 8.2 in October 2023, that data sits in dedicated order tables. Older stores that never switched keep orders in wp_posts and wp_postmeta.

Data Where it’s stored (HPOS) What it’s used for
Billing and shipping names, addresses, phone wc_order_addresses Fulfilment, invoices, delivery contact
Email address wc_orders Order emails, account login
IP address and browser user agent wc_orders Fraud checks
Referrer, UTM tags, device type, session page views wc_orders_meta (Order Attribution) Marketing reports
Customer account and saved addresses wp_users and wp_usermeta Logins, faster repeat checkout
Payment method Gateway token or last four digits Refunds, saved cards

Order Attribution is switched on by default for new and existing stores, so it belongs in your data inventory even if you never set it up. You’ll find it under WooCommerce > Settings > Advanced > Features.

The cheapest data to protect is the data you never collect. GDPR’s data minimisation principle asks for data that is “adequate, relevant and limited to what is necessary”, and every field you drop also shortens checkout. In the Checkout block editor, the Company, Address line 2 and Phone fields can each be hidden. Hide any you don’t act on.

Does GDPR Apply to a WooCommerce Store Outside the EU?

Yes, if the store offers goods to people in the EU. Article 3(2) of GDPR covers businesses with no EU office when they offer goods or services to people in the Union, paid or free. Recital 23 lists signs of that intent, such as pricing in euros, an EU language, or mentioning EU customers.

A store that ships to the EU and accepts euros is in scope. A US store that happens to get one German order through a marketplace is a much weaker case, but most stores with international shipping should plan for GDPR.

Once GDPR applies, every type of processing needs a lawful basis. For a WooCommerce store, three cover nearly everything:

  • Contract: billing and shipping details needed to fulfil the order. No consent is needed.
  • Legitimate interest: fraud checks and security logging. Write down why the interest outweighs the customer’s privacy.
  • Consent: marketing emails, analytics cookies and ad pixels. The customer must be able to withdraw it as easily as they gave it.

Keep these separate. If you ask for consent to process a shipping address, a customer who withdraws it leaves you unable to ship an order you’re legally required to deliver.

Does the CCPA Apply to a WooCommerce Store?

Only if the business meets one of three tests: gross annual revenue of $26.625 million or more, buying, selling or sharing the personal information of 100,000 or more California residents or households a year, or earning half its revenue from selling or sharing personal information. Many small stores meet none of them.

Those figures come from the California Privacy Protection Agency, which adjusts the dollar amounts for inflation every odd-numbered year. The current revenue figure took effect on 1 January 2025, and the next adjustment is due in January 2027. Several other US states have passed their own privacy laws with different thresholds, so check each state you sell into in volume.

If the CCPA does apply, the requirement stores most often miss is the “Do Not Sell or Share My Personal Information” link. Sending visitor data to ad platforms for cross-context behavioural advertising, through a retargeting pixel for example, can count as sharing. The link has to lead to a working opt-out that stops those scripts, so a link to your privacy policy alone doesn’t meet it.

How Do GDPR and CCPA Compare for a WooCommerce Store?

GDPR asks for permission before tracking, and the CCPA gives people a way to say no to the sale or sharing of their data. GDPR also reaches far more stores, because it has no revenue threshold. A store selling into both regions should build one process around GDPR’s shorter deadlines and stricter consent rules, then add the CCPA opt-out link.

Requirement GDPR (EU) CCPA/CPRA (California)
Who it covers Any store offering goods to people in the EU Businesses that meet one of three thresholds
Tracking and marketing Opt-in before non-essential cookies load Opt-out of selling or sharing
Request deadline One month, extendable by two more 45 calendar days, extendable by 45 more
Maximum regulatory fine €20 million or 4% of worldwide annual turnover, whichever is higher $2,663 per violation, $7,988 if intentional
After a data breach Tell the regulator within 72 hours where feasible Customers can sue for $107 to $799 each per incident

Install a consent plugin that blocks analytics and marketing scripts until the visitor opts in, then passes that choice to Google Consent Mode and the WP Consent API. WooCommerce’s cart and session cookies are essential, so they need no consent. Complianz and CookieYes both block scripts this way and both support the WP Consent API.

A banner that shows a notice while Google Analytics and the Meta Pixel load in the background fails the test, because the cookies are already set before the visitor chooses. Set it up in this order:

  1. Install Complianz or CookieYes and run its cookie scan to see what your store actually loads.
  2. Sort scripts into necessary, statistics and marketing categories, and give Accept and Reject equal weight on the banner.
  3. Turn on Google Consent Mode v2 in the plugin. It sends four signals: ad_storage, analytics_storage, ad_user_data and ad_personalization. Google needs these signals to use ad personalisation and measurement for EEA users.
  4. Install the WP Consent API plugin so other plugins can read the visitor’s choice. WooCommerce’s Order Attribution checks for marketing consent through this API before it tracks a visitor.
  5. Test in a private window with the browser’s Network tab open. Before you click Accept, no requests should go to Google Analytics, Meta or other ad domains.

Consent Mode has two versions. In basic mode, Google tags don’t load at all until the visitor chooses. In advanced mode, the tags load with consent denied and send cookieless pings that Google uses to model conversions. Basic mode is the simpler setup to defend; advanced mode gives better conversion reporting.

Shorten what you keep in analytics too. In GA4, standard properties can retain user-level and event data for 2 or 14 months. The setting affects explorations and funnel reports, while standard reports keep their aggregated data, so 2 months is enough for many stores.

What Should a WooCommerce Privacy Policy Include?

A WooCommerce privacy policy should list the data you collect at checkout, why you need each item, which services receive it, how long you keep it and how customers can ask for a copy or deletion. GDPR’s Article 13 sets out what you must tell people when you collect their data.

To create the page and connect it to your store:

  1. In WordPress, go to Settings > Privacy. Choose Create New Page, or select an existing page and click Use This Page.
  2. Use the “Check out our guide” link on that screen for suggested sections from WordPress and your plugins. It’s a starting point, so rewrite every section for your own store.
  3. Go to WooCommerce > Settings > Accounts and Privacy and fill in the registration and checkout privacy notices. Add [privacy_policy] to each notice to link to the page.

Then make the policy specific to your store. It should cover:

  • The checkout data you collect: name, addresses, email, phone, IP address and browser user agent.
  • Payments: name your gateway, state that it processes card numbers and that your server never stores them, and link to its privacy policy.
  • Analytics and advertising tools by name, such as GA4 or the Meta Pixel, what each collects, and that they load only after consent.
  • Your email platform and CRM, the data you pass them and the lawful basis.
  • Order Attribution, if it’s on: the traffic source and device data saved with orders.
  • Retention periods for accounts and each order status. Base them on the record-keeping rules for tax in your country.
  • Transfers outside the EU, for example to US-based processors.
  • How to request a copy, correction or deletion, with a contact email and your response deadline.

How Do You Handle Data Access and Deletion Requests in WooCommerce?

Use WordPress’s Tools > Export Personal Data and Tools > Erase Personal Data screens, which email the customer to confirm each request. Before your first erasure, turn on “Remove personal data from orders on request” under WooCommerce > Settings > Accounts and Privacy. It’s off by default, and without it orders keep the customer’s details after an erasure.

The full workflow for a request:

  1. Log the request with the date you received it. The one-month GDPR clock or the 45-day CCPA clock starts then.
  2. Go to Tools > Erase Personal Data (or Export Personal Data for an access request), enter the customer’s email address and click Send Request.
  3. Wait for the customer to confirm through the emailed link. The request stays pending until they do.
  4. Run the erasure or send the export. With the order setting on, WooCommerce anonymises the personal fields on that customer’s orders and keeps the totals for your accounts.
  5. Remove the customer from every connected tool by hand: your email platform, CRM, review app and any spreadsheet exports. WordPress can’t reach those.
  6. Record the completion date and what you removed.

The same Accounts and Privacy tab sets automatic retention. Each option is blank by default, which keeps the data forever, and WooCommerce runs the cleanup daily once you set a period.

Retention setting What WooCommerce does when the period ends
Retain inactive accounts Deletes customer accounts that haven’t logged in or ordered in that time
Retain pending, failed and cancelled orders Moves the orders to the trash
Retain refunded and completed orders Anonymises the personal data and keeps sales figures

Set completed orders to match how long your tax rules require you to keep sales records, and state the same periods in your privacy policy.

What Does PCI DSS Compliance Mean for a WooCommerce Store?

For most WooCommerce stores, PCI DSS compliance means completing the shortest self-assessment questionnaire, SAQ A, each year. You qualify when your gateway’s hosted page or embedded payment form collects the card details, so card data never passes through your server. Your gateway or acquiring bank tells you which questionnaire to submit.

Which questionnaire applies depends on how the card form reaches the customer:

How the card form works Questionnaire What it means for you
Redirect to the gateway’s page, or the gateway’s iframe or embedded form SAQ A The smallest scope. Embedded forms also need you to confirm your site isn’t open to script attacks.
Your page or script builds the card form and posts it straight to the gateway SAQ A-EP More requirements, because your site controls the payment page
Your server stores, processes or transmits card numbers SAQ D The full standard. Avoid this on WooCommerce.

SAQ A changed in January 2025. The PCI Security Standards Council removed requirements 6.4.3 and 11.6.1, which covered payment page scripts, and added an eligibility check that your site isn’t susceptible to script attacks. A follow-up FAQ says that check applies to stores using an embedded form or iframe, and full redirects are exempt. In practice, keep your checkout page free of scripts it doesn’t need and keep plugins updated.

WooCommerce doesn’t store card numbers by default, but some old or abandoned payment plugins did. If your store has used several gateways over the years, check the database for card-like data before you sign the questionnaire. The WooCommerce payment gateways guide compares how Stripe, PayPal, Square and others handle PCI scope.

Which Security Controls Protect Stored Customer Data?

Customer data is only as safe as the logins and software around it. Turn on two-factor authentication for every administrator and shop manager, give staff the lowest role that lets them work, keep WordPress and plugins updated, force HTTPS on wp-admin, and keep backups off the server with a set retention period.

Control Why it matters for customer data How to set it up
Two-factor login for administrators and shop managers The shop_manager role can view and export every order Securing WordPress admin
Lowest workable role per person Fewer accounts can read or export orders Securing WordPress admin
Prompt updates Most break-ins use known plugin flaws 8 security steps without code
HTTPS on wp-admin Admin sessions and order screens stay encrypted Add define( 'FORCE_SSL_ADMIN', true ); to wp-config.php. FORCE_SSL_LOGIN has been deprecated since WordPress 4.0.
Firewall and malware scanner Blocks injection attempts and flags changed files Security plugins compared
Off-site backups with a retention limit Backups hold personal data too Backup and recovery guide

The backup row is the one compliance checklists skip. A customer you erased in March reappears if you restore a February backup, so keep backup retention short, and after any restore, check your erasure log and re-run the requests made since that backup was taken.

What Should You Do If Customer Data Is Breached?

Contain the breach, work out which records were exposed, then notify. Under GDPR, you tell your supervisory authority within 72 hours of becoming aware where feasible, and tell customers directly when the risk to them is high. In the US, all 50 states have breach notification laws, each with its own rules.

  1. Put the store into maintenance mode, or ask your host to block traffic at the server.
  2. Copy the server access logs and your security plugin’s logs before you change anything.
  3. Work out what was reached: the order tables, customer accounts, new admin users, or scripts added to the checkout page.
  4. Notify the people who need to know: your supervisory authority and affected customers under GDPR, the state rules that apply in the US, and your payment gateway if checkout scripts or card data were involved.
  5. Reset every credential from a clean device: WordPress users, hosting, SFTP, database and API keys.
  6. Restore from a clean backup or clean the site, then fix the gap that let the attacker in.

For California residents, the CCPA lets customers sue for $107 to $799 each per incident when certain unencrypted personal data is exposed through weak security, which makes a breach expensive even below the regulator’s radar. The hacked WordPress recovery checklist covers the clean-up in detail, and the guide to securing WooCommerce against fraud covers card testing and account takeover.

Where Should You Start With WooCommerce Compliance?

Start with the gaps anyone can see from outside: tracking that fires before consent and a generic privacy policy. Then fix the settings that decide what happens to stored data, confirm your PCI questionnaire, and lock down admin access. Work through the list in this order:

  1. Map your customer data: checkout fields, Order Attribution, and every tool that receives customer details.
  2. Hide checkout fields you don’t use.
  3. Block analytics and marketing scripts until consent, and test it in a private window.
  4. Publish a privacy policy that names your tools and retention periods, and link it from checkout.
  5. Turn on order data removal and set retention periods.
  6. Sign data processing agreements with your gateway, email platform and Google. Most are in each account’s settings.
  7. Confirm which PCI questionnaire you file and remove scripts the checkout page doesn’t need.
  8. Turn on two-factor login for admins and shop managers, and set a backup retention period.

If you’d like the audit done for you, I review WooCommerce stores for consent, retention, PCI scope and admin access as part of my WooCommerce development service, and ongoing updates and backups are covered by my maintenance care plans. You can also get in touch with a specific question.

Frequently asked questions

Yes. WordPress adds Export Personal Data and Erase Personal Data screens under Tools, and WooCommerce extends them to cover orders, downloads and customer accounts. WooCommerce > Settings > Accounts and Privacy also sets privacy notices and automatic retention periods. You still need a consent plugin for cookies and a privacy policy written for your store.

No. WooCommerce passes card details to your payment gateway, which returns a token and usually the last four digits for the order record. Some old or abandoned payment plugins did store card data, so check the database if your store has switched gateways over the years.

WooCommerce's cart and session cookies are essential to placing an order, so EU rules don't require consent for them, though your privacy policy should still describe them. Most stores also run analytics, ad pixels or chat widgets, and those need opt-in consent before they load.

Keep completed orders for as long as your tax rules require you to keep sales records, then let WooCommerce anonymise them using the retention settings under Accounts and Privacy. Unpaid pending and failed orders can usually go much sooner. Every retention field is blank by default, which keeps the data forever.

It can be. Order Attribution is on by default and saves the traffic source, UTM tags and device type with each order. It works with the WP Consent API and treats its tracking as marketing, so with a supported consent plugin it only tracks visitors who accept marketing cookies. Mention it in your privacy policy either way.

SAQ A applies when the gateway collects card details on its own hosted page, iframe or embedded form, so your site never handles them. SAQ A-EP applies when your own page or script builds the card form and posts the data to the gateway, which gives your site control over the payment page and adds requirements.

Photo of Ajay Khandal

Written by Ajay Khandal

I'm a freelance WordPress developer with 14+ years of experience building, fixing, and speeding up sites for businesses, agencies, and store owners across the US, UK, Europe, and Australia. I specialize in custom themes, WooCommerce, and performance, the kind of work that shows up as faster load times and fewer support tickets. You work directly with me, and replies typically arrive within 5 hours.

Work with me →