Guide · Tracking and data

GDPR for Shopify stores: what tracking and customer data require

What the GDPR means for a Shopify store: who is responsible, cookie consent, privacy policy, apps and pixels, data requests and the common mistakes.

Updated · 10 min read

By the ROASaurus team

The short answer
  • The GDPR applies to any store that sells to people in the EU, wherever the store is based; the merchant is responsible for the personal data the store and its apps collect.
  • Cookies and pixels that are not strictly necessary need the visitor's consent first under the ePrivacy rules; the GDPR sets what valid consent looks like.
  • A compliant store has a privacy policy, a cookie banner that blocks tracking until consent, data processing agreements with its apps, and a way to answer access and deletion requests.
  • Server-side tracking does not remove the need for consent; it changes the route, not the rules.
  • This guide explains the rules in general; it is not legal advice. For your store, check the regulation, the EDPB guidance and your national data protection authority, or ask a privacy lawyer.

The General Data Protection Regulation (GDPR) governs how personal data of people in the European Union is collected and used. For a Shopify store, it touches every order, every newsletter sign-up and every tracking pixel. This guide explains in plain terms what the GDPR asks of an online store, how cookie consent fits in, what Shopify and your apps already handle, and what you must do yourself.

What is the GDPR?

The GDPR is an EU regulation that has applied since 25 May 2018 in all EU member states, and in Iceland, Liechtenstein and Norway through the EEA. The United Kingdom kept a near-identical version (the UK GDPR), and Switzerland has its own data protection act. The key ideas:

TermWhat it means for a store
Personal dataAny information about an identifiable person: name, address, email, phone, order history, IP address, cookie ids, device ids.
ProcessingAnything you do with it: collect, store, send to an app, use for ads, delete.
ControllerWho decides why and how data is processed. For your store's customer data, that is you, the merchant.
ProcessorWho processes data on your behalf: your shop platform, email tool, tracking app. They need a data processing agreement with you.
Lawful basisEvery processing needs one of six bases, such as consent, a contract (to deliver an order) or a legitimate interest.
Data subject rightsAccess, correction, deletion, objection, data portability and more, for each person whose data you hold.

Who it applies to

Article 3 extends the GDPR to businesses outside the EU when they offer goods or services to people in the EU or monitor their behaviour there. A store in the United States, Canada or Australia that ships to Germany and tracks German visitors falls under it for those visitors. Fines for the most serious breaches can reach €20 million or 4% of worldwide annual turnover, whichever is higher, and supervisory authorities can also order a store to stop a processing.

Why it matters for Shopify merchants

Shopify hosts your store and processes data for you, but you decide what your store collects and where it goes. Every app you install, every pixel you add and every list you upload to an ad platform is a processing decision you are responsible for. That is why most GDPR problems in a webshop are not in Shopify itself but in the apps and scripts around it.

GDPR and the cookie rules

Two sets of rules work together. The ePrivacy Directive (Article 5(3)), implemented in each country's law, requires consent before storing or reading information on a visitor's device, unless it is strictly necessary for the service the visitor asked for. The GDPR defines what consent means: freely given, specific, informed and unambiguous, given by a clear action, and as easy to withdraw as to give. A shopping cart cookie is strictly necessary; an advertising pixel is not.

What you can do to be GDPR compliant

The core of a compliant store
  • Know your data: list what personal data the store and each app collect, why, where it goes and how long it is kept.
  • Have a lawful basis for each purpose: the contract for orders, consent for marketing cookies and newsletters, legitimate interest only where it really fits.
  • Publish a privacy policy that matches what you actually do.
  • Show a cookie banner that blocks non-essential cookies and pixels until the visitor agrees.
  • Sign data processing agreements with the apps and services that process customer data for you.
  • Answer requests for access, correction and deletion within one month.
  • Keep data only as long as you need it, and protect it with access controls and two-factor sign-in.
  • Know what to do if data leaks: a notifiable breach goes to the authority within 72 hours.
  • Check transfers outside the EU: many apps process data in the United States, which needs a legal transfer mechanism.

Beware of your toolset

Most stores run ten or more apps, and many of them add scripts or receive customer data. You are responsible for all of them. Go through the list:

  1. List every app and script

    Shopify apps, custom pixels under Settings › Customer events, code in the theme, and tags inside Google Tag Manager.

  2. Note what each one collects

    Does it set cookies? Read device information? Receive names, emails or orders? Send data to an ad platform?

  3. Find its purpose and basis

    Necessary for the shop, analytics, marketing or preferences. Only strictly necessary tools may run without consent.

  4. Check the paperwork

    A data processing agreement, the list of sub-processors and where the data is stored.

  5. Remove what you do not use

    An uninstalled app can leave its script in the theme. Delete leftovers.

Privacy policy

Shopify offers a privacy policy generator under Settings › Policies, and many template services exist. A template is a start, not an end: the policy has to describe your store. It should say who you are and how to contact you, what data you collect and why, the lawful basis for each purpose, which processors and ad platforms receive data, whether data leaves the EU, how long you keep it, the rights people have and how to use them, and the right to complain to a supervisory authority. Update it when you add an app that changes any of this.

The banner is where most stores go wrong. Shopify has its own cookie banner and a Customer Privacy API that records each visitor's choice; consent apps can connect to the same API. Whatever you use, data protection authorities look at these points. The EDPB's cookie banner taskforce report lists the practices they consider problematic.

  1. Block before consent

    Non-essential cookies and pixels must not load until the visitor accepts. A banner that only informs while pixels already fire does not give consent.

  2. Make refusing as easy as accepting

    A reject option on the first layer, as visible as the accept button. Hiding it behind "settings" is a common complaint.

  3. No pre-ticked boxes

    Categories such as marketing and analytics start off. Scrolling or continuing to browse is not consent.

  4. Be specific

    Name the purposes and the main tools, so the visitor knows what they agree to.

  5. Record the choice

    Keep a record of what each visitor chose and when. Shopify's Customer Privacy API stores the choice; your consent tool may keep logs.

  6. Allow withdrawal

    A link in the footer or a small icon lets visitors change their mind at any time.

  7. Pass the choice to your tools

    Pixels in Shopify's checkout read the Customer Privacy API; Google tags read Consent Mode; other scripts need the consent tool's signal.

Ad pixels, analytics and visitor recognition are the main reason a store needs a banner. How each part relates to consent:

Usually needs consent
  • Meta, TikTok, Google Ads and other ad pixels in the browser
  • Analytics cookies (GA4 and similar)
  • Storing click ids and visitor ids for attribution
  • Fingerprinting or other device recognition
  • Uploading customer lists to ad platforms
Usually does not
  • The cart and checkout cookies the shop needs to work
  • Processing an order to deliver it
  • Fraud prevention needed for payment
  • Strictly necessary security cookies
A general picture. Some countries and authorities take stricter or different views, for example on analytics.

Sending events from a server instead of the browser does not change these rules: if the data or the purpose needs consent, it needs consent whichever route it takes. Google's Consent Mode passes the visitor's choice to Google tags so they adjust; our post on Consent Mode v2 and GDPR explains its two modes. Whether a server-side purchase event for a visitor who declined may be sent at all is a legal question for your store.

Make personal data manageable and accessible

People can ask what you hold about them, ask you to correct it, or ask you to delete it. You have one month to answer, extendable in complex cases. Personal data in a store includes names, addresses, emails, phone numbers, IP addresses, cookie ids, order numbers and the data your apps hold.

  1. Find the person

    Look up the customer in Shopify admin by email or name.

  2. Request or erase in Shopify

    The customer page in Shopify admin has actions to request a customer's data and to erase their personal data. Shopify then tells the installed apps.

  3. Check the apps

    Apps on Shopify receive privacy webhooks for data requests and deletions (customers/data_request and customers/redact), and a shop deletion 48 hours after you uninstall them (shop/redact). Ask each app how it handles them.

  4. Check tools outside Shopify

    Your email tool, help desk, spreadsheets and ad platform audiences hold data too.

  5. Answer and record

    Reply to the person and keep a note of the request and what you did.

Note that you may need to keep some data even after a deletion request, for example invoices for tax law. The policy should say so.

Common mistakes

  • A copied privacy policy that names tools you do not use and misses the ones you do.
  • A banner that does not block. Pixels load on the first page view; the banner is decoration.
  • No reject button on the first layer, or a reject that still loads analytics.
  • Tags outside the consent tool. A pixel in theme code or a custom pixel that ignores the Customer Privacy API.
  • Customer lists uploaded to ad platforms without a basis for using them for advertising.
  • No data processing agreements with apps that receive customer data.
  • Requests that go nowhere. No one owns the privacy inbox, and requests pass the one-month limit.

Is your store really compliant? A check

  1. Privacy policy check

    Read it next to your app list. Every tool that receives personal data should be covered.

  2. Banner check

    Open the store in a private window from an EU location. Is there a clear accept and reject? Are purposes named?

  3. Blocking check

    Before choosing, open the browser's developer tools: no requests to facebook.net, googleadservices.com, analytics.tiktok.com or similar should appear. Reject, browse, and check again.

  4. Consent change check

    Accept, then withdraw. Pixels should stop on the next page.

  5. Checkout check

    Repeat in checkout: pixels there follow the Customer Privacy API.

  6. Request check

    Send yourself a data request and a deletion request as a test customer and follow them through Shopify and your apps.

ROASaurus reads each visitor's choice from Shopify's Customer Privacy API or from your consent tool (OneTrust, Cookiebot, Usercentrics, Didomi, CookieYes, IAB TCF or Google Consent Mode, among others). A store chooses one of four consent modes; the default, Respect visitor consent, follows the visitor's choice. For a visitor who declined, that means no visitor id, no stored click id, no browser events to ad platforms and no profit values for bidding. The paid order itself is still sent server-side to Meta, TikTok, Snapchat, Pinterest, Reddit, X, Microsoft Advertising and Taboola with the order's customer details hashed (SHA-256) and without a click id (Microsoft flagged as consent denied); Google Ads gets it flagged as consent denied without customer details; the other destinations get nothing. Whether that is right for your store is a legal decision, so read it with your adviser. Fingerprinting is off unless the store turns it on.

Shopify's privacy webhooks are handled automatically: customer data requests are compiled for the store's owners, customer redactions remove that customer's personal details, and a shop redaction after uninstalling deletes the store's records. ROASaurus is hosted in Amsterdam and works as your processor under a data processing agreement.

In ROASaurusSettings › Store
  1. Choose the consent mode: Respect visitor consent, Strict, By region or Always track (only where consent is not required).
  2. Pick your consent tool, or leave it on Shopify's Customer Privacy API, and map the tool's categories to analytics and marketing if needed.
  3. Decide on anonymous measurement, visitor recognition and household links with your adviser, and name them in your banner and privacy policy if you use them.
  4. Open Data quality › Consent to see the consent rate and orders and revenue by consent state.

The help page on consent describes each mode in detail.

Start freeOpen the live demo14-day trial of every feature, no credit card.

Sources

  1. EUR-Lex: Regulation (EU) 2016/679 (General Data Protection Regulation)
  2. EUR-Lex: Directive 2002/58/EC (ePrivacy Directive)
  3. EDPB: Guidelines 05/2020 on consent under Regulation 2016/679
  4. EDPB: Report of the work undertaken by the Cookie Banner Taskforce
  5. EDPB: Members (national data protection authorities)
  6. Shopify Dev: Customer Privacy API
  7. Shopify Dev: Cookie banner
  8. Shopify Dev: Privacy law compliance (mandatory webhooks)
  9. Google for Developers: Consent mode

More guides on tracking and data · All guides

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is the GDPR?

The General Data Protection Regulation is the EU law on personal data, in force since 25 May 2018. It sets rules for collecting and using data about people in the EU and gives them rights over their data.

Does the GDPR apply to my Shopify store outside the EU?

It applies when you offer goods to people in the EU or monitor their behaviour there, wherever your business is based. A store that ships to EU customers and tracks EU visitors falls under it for them.

Is Shopify GDPR compliant?

Shopify offers tools for compliance, such as a cookie banner, the Customer Privacy API and data request and erasure actions, and acts as a processor for merchants. Your store's compliance depends on your own settings, apps and policies.

Do I need a cookie banner on Shopify?

If you use cookies or pixels that are not strictly necessary, such as ad pixels or analytics, and you have visitors in the EU, the UK or Switzerland, you need consent before they load. A banner is the usual way to ask.

Does server-side tracking make consent unnecessary?

No. The rules depend on the data and the purpose, not on whether the browser or a server sends it. Configure server-side tracking to follow the visitor's choice as your legal advice requires.

How do I handle a customer's request to delete their data?

Use the erase action on the customer page in Shopify admin, which notifies installed apps, then check tools outside Shopify. Answer within one month and keep records you must keep by law, such as invoices.

What are the fines for breaking the GDPR?

For the most serious breaches, up to €20 million or 4% of worldwide annual turnover, whichever is higher. Authorities can also order a business to stop a processing.

Where can I get legal certainty for my store?

Read the regulation and the EDPB guidelines, check your national data protection authority's guidance for webshops and cookies, and ask a privacy lawyer for your specific setup.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.