Skip to content
Tell us about your project

Platform · 4 min read

Cookies and GDPR on a Shopify store: banner and consent

If you sell in Spain, your store has to ask for consent before using cookies that are not strictly necessary. Shopify offers a native cookie banner and a privacy API that connects that consent to pixels and apps. Here is how the technical side works; the legal side should be validated by your advisor.

Which cookies a Shopify store uses

Shopify uses cookies required for the store to work, such as those for the cart, the checkout session or security. On top of that there are Shopify's own analytics and preference cookies, and the ones added by the tools you install: GA4, Meta, TikTok, review apps, chats or heatmaps.

The first step is to take inventory. Review the pixels in Settings > Customer events, the installed apps and any script pasted into the theme. Each of them can set cookies or send data to a third party, and your cookie policy has to reflect that.

Pay attention to old scripts: tracking codes pasted into theme.liquid years ago, tags for tools you no longer use or leftovers from uninstalled apps. These are usually the ones loading cookies without going through consent, because nobody has them on the list.

  • Necessary: cart, checkout, session and security
  • Analytics: Shopify reports, GA4 and similar
  • Marketing: ad and remarketing pixels
  • Preferences: language, currency and visitor settings

The Customer Privacy API

The Customer Privacy API is the interface that stores and checks each visitor's consent preferences. The native banner uses it under the hood, and third-party consent management apps integrate with it so Shopify knows what the customer has accepted.

If the theme or a custom section loads a third-party script, that code has to check the API before running and listen for consent changes. This is where stores fail most often: the banner exists, but a script pasted into theme.liquid loads anyway before the visitor decides.

The fix is to route all third-party code through the consent system: ideally as a custom pixel in customer events, with its permissions configured, and only if that is not possible, from the theme by checking the API. That gives you a single point of control and makes it easier to audit what loads and when.

How to check that it works

Open the store in a private window with the browser's developer tools and reject all optional cookies. Check which cookies are set and which requests go out to Google, Meta or other domains. Then repeat the test accepting them and compare. If something loads before the visitor decides, track down its source in the theme or the apps.

Repeat the check every time you install an app or add a script. At Weblineo we build themes so that every third-party script respects consent at the code level, and we leave the legal setup in the hands of your advisor.

Frequently asked questions

Is Shopify's cookie banner enough to comply with the GDPR?

Technically it blocks the pixels connected to the consent system, but compliance also depends on your copy, your cookie policy and the rest of your scripts. Validate it with a legal advisor.

Does Shopify checkout respect consent?

Pixels that run in checkout do so through customer events, which respect the consent permissions configured for each pixel.

Can I use a cookie app I already use on other websites?

Yes, if it integrates with Shopify's Customer Privacy API. If it does not, Shopify will not know what the visitor has accepted and pixels will not be blocked correctly.

Who writes the cookie policy?

A legal advisor, based on the technical inventory of cookies and tools you use. Generic templates do not reflect the specific tools in your store.

Your next Shopify store starts here

Tell us about your project in a few minutes. If it’s a fit, you book a 30-minute call with a developer and we send you a fixed-price proposal.

Tell us about your projectWe reply within 24 hours