Integrations
implementation guidePlatforms and stores

Cookie banner for Shopify with Consent Mode v2 and the Customer Privacy API

Add CookiePilot to a Shopify store through an app embed, without editing theme code. The Consent Mode v2 stub loads first in head, and the visitor's decision is also passed to the Shopify Customer Privacy API, so checkout and Shopify pixels follow it.

Consent behaviour

App embed loaded first in head (target compliance_head), no theme.liquid edits.

Consent Mode defaults set to denied before any tag starts.

The visitor's decision reaches the Shopify Customer Privacy API only after they click, so checkout and Web Pixels follow it.

Plans bought through the app are billed only by Shopify.

Setup steps

Install the CookiePilot app on your store. The app is waiting for publication in the Shopify App Store; until then write to support@cookiepilot.io or paste the stub and cookiepilot.js at the top of head in theme.liquid (code in the dashboard: Domains > Install).

In the App Home click Connect store in CookiePilot, sign in or create a free account and click Connect store. The domain and key are set up automatically.

Click Turn on the app embed and save the theme in the editor.

In Settings > Customer privacy turn off Shopify's cookie banner and keep collecting consent before tracking in regions that require it.

Open the store in a private window and go through product, cart and checkout before and after consent.

Test checklist

Before consent window.dataLayer holds consent default with denied values.

Before consent there are no _ga, _fbp, Meta, TikTok or Google Ads requests.

After Accept Shopify.customerPrivacy.currentVisitorConsent() shows analytics and marketing yes.

After Reject checkout works and Shopify pixels send no marketing events.

Only one banner is visible (Shopify's banner is turned off).

Related integrations

See the setups that most often appear together with this integration.

Ready to configure it?

Start CookiePilot, choose the right integration and verify that tags wait for user consent before they run.