ShopifyShopify App

Cookie Consent for Shopify

Native Shopify app with Theme App Extension. Add a GDPR & CCPA compliant cookie consent banner to your store in 3 minutes. No code editing. No theme modifications.

How to install

1

Install the Shopify app

Install the Legal Banner app on your store. It appears in your Shopify admin.

2

Connect to LegalBanner

Generate a connect code in your LegalBanner dashboard and enter it in the Shopify app. Your store is linked instantly.

3

Enable the theme block

Go to Online Store > Themes > Customize. Add the Legal Banner app block and save. Your consent banner is live.

Features

Theme App Extension

Installs as a native Shopify app block. No code editing, no theme.liquid modifications. Works with all Online Store 2.0 themes. Survives theme changes.

One-click connect

Generate a connect code in your LegalBanner dashboard, enter it in the Shopify app, and your store is linked. No API keys or manual configuration.

Google Consent Mode v2

Native support for Google Consent Mode v2. It turns on automatically when Google tags are detected and sends consent signals to Google Analytics 4, Google Ads, and Google Tag Manager.

Shopify Customer Privacy API

Optional sync with Shopify's built-in Customer Privacy API. Consent decisions flow to Shopify-managed surfaces like pixels, audiences, and checkout.

GDPR & CCPA compliant

Holds the trackers the scan finds until the visitor consents. Visitors in the EU, UK, Canada and Brazil are asked first; visitors in the US get an opt-out banner with a Do Not Sell or Share choice, and Global Privacy Control is honored.

Light on your storefront

About 14KB gzipped and isolated in Shadow DOM, so it never touches your theme styles.

Disable without removing

Toggle injection on/off from the app without removing the theme block. Quick kill switch for testing or emergencies.

Multi-store support

Connect multiple Shopify stores to one LegalBanner account. Each store gets independent banner configuration and consent logs.

Why Theme App Extension?

Shopify recommends Theme App Extensions over ScriptTags for all apps that integrate with the storefront. Theme App Extensions are the modern, App Store-approved way to add functionality to Shopify themes.

  • Survives theme changes, no need to reinstall
  • Merchant controls placement via the theme editor
  • No theme.liquid edits, so nothing breaks
  • Required for Shopify App Store approval

Frequently Asked Questions

Is the Shopify app free?

Yes. The app itself is free. It connects to your LegalBanner account, which has a free plan (1 site, all banner features).

Does it work with Shopify Plus?

Yes. The app works with all Shopify plans including Basic, Shopify, Advanced, and Plus.

Does it sync with Shopify's privacy settings?

Yes. The optional Shopify Customer Privacy API sync sends consent decisions to Shopify's built-in privacy system, ensuring Shopify-managed surfaces respect your visitors' choices.

Does it support Google Consent Mode v2?

Yes. Consent Mode v2 turns on automatically when Google tags are detected on your store, and consent signals go to Google Analytics 4, Google Ads, and GTM.

What happens if I change my theme?

Theme App Extensions survive theme changes. You may need to re-enable the Legal Banner block in your new theme's editor, but the connection stays intact.

Will it slow down my store?

Very little. The banner script is about 14KB gzipped, served from our CDN and cached by the browser.

Add cookie consent to your Shopify store

GDPR, CCPA, Google Consent Mode v2, Shopify Customer Privacy API. Free plan available.

LegalBanner for Shopify: Cookie Consent App for GDPR and CCPA | LegalBanner