TL;DR
A banner app should write each answer to Shopify's consent record [1]; whether yours does is what this article tests. Shopify's developer docs say that in regions configured to require consent, non-essential purposes are off until the visitor answers, and in every other region everything is allowed [1]. So a swap can change your numbers in three ways: the region list stops matching where the new banner appears, the new banner writes accept but not decline, or it writes analytics but never marketing. Each shows up in the console and in your Regions list, if you recorded the old state first.
Key Takeaways
- Fill in the sheet below on the old banner before you touch it: region, banner flag, the four consent values, the four Allowed methods, the consent id, the Regions list and one day of purchase counts.
- Shopify says the regions in Settings > Customer privacy must match the regions where a third-party banner is shown, or non-essential data can be processed before the visitor answers [2].
- Test decline as well as accept, and marketing as well as analytics. A category the banner never writes stays an empty string [1].
- Test from a location you configured and one you didn't.
- The app's browser events follow Shopify's Customer Privacy API signals. The optional server-side skips are off by default: the GA4 skip is available on every plan, the marketing-channel skips on Plus.
- None of the Shopify pages cited here say what happens to a returning visitor's stored answer when the banner app changes, so test one browser that visited before the swap.
What does swapping a cookie banner app change on a Shopify store?
The banner is what a visitor sees. What your tracking reads is the record behind it, window.Shopify.customerPrivacy, which Shopify's page says is globally available once the API has loaded [1]. Shopify's own banner writes to that record automatically when it's enabled; for an app, Shopify tells you to contact the app's developer to learn where the banner renders [1].
Three things can move in a swap: the countries the new app serves, the code paths for accept, decline and reopen, and which of the three consent answers (analytics, marketing, preferences) the banner writes.
If your numbers have already dropped, start with the five-minute single-visit check in our guide to a consent banner silently erasing your analytics. It tests one visit, analytics only, accept only. This article is the record you keep around a change, so the next diagnosis starts from a diff.
What should you write down before you remove the old banner?
Open your storefront in a private window, accept the old banner's prompt, and run this in the browser console. Then decline in a second private window and run it again.
const cp = window.Shopify.customerPrivacy;
({
region: cp.getRegion(),
showBanner: cp.shouldShowBanner(),
consent: cp.currentVisitorConsent(),
analytics: cp.analyticsProcessingAllowed(),
marketing: cp.marketingAllowed(),
preferences: cp.preferencesProcessingAllowed(),
saleOfData: cp.saleOfDataAllowed(),
consentId: cp.consentId()
})
If window.Shopify.customerPrivacy is undefined, the API hasn't loaded on that page; Shopify's Customer Privacy API page has the loadFeatures call that requests it [1]. What comes back is documented. currentVisitorConsent() returns marketing, analytics, preferences and sale_of_data, each 'yes', 'no' or an empty string, and the empty string means the visitor hasn't granted or denied that purpose. getRegion() returns an ISO 3166-2 code such as USCA or GBENG, or an empty string when the location can't be determined. consentId() is the id you'd look up in Shopify's consent audit log [1].
Write the answers into a sheet. This is the shape, with illustrative values:
| Row | Old banner, accept | Old banner, decline | Where it comes from |
|---|---|---|---|
| Region | USCA |
USCA |
getRegion() [1] |
| Banner shown |
false after answering |
false after answering |
shouldShowBanner() [1] |
| Stored answers | yes / yes / yes / (empty) |
no / no / no / (empty) |
currentVisitorConsent() [1] |
| Analytics allowed | true |
false |
analyticsProcessingAllowed() [1] |
| Marketing allowed | true |
false |
marketingAllowed() [1] |
| Preferences allowed | true |
false |
preferencesProcessingAllowed() [1] |
| Consent id | one value per visit | one value per visit |
consentId() [1] |
Sale of data is a separate opt-out the customer starts, not a banner answer [1]. Two more rows live outside the console. Open Settings > Customer privacy > Cookie banner and write down the configured regions; Shopify's menu changes with the store's state, so you may see Edit beside Regions, "Set custom banner regions", or a "Remove cookie banner" item [2]. Then write down yesterday's purchases in GA4 and orders in Shopify, so you have a number from before you started changing things.
Also note whether "Respect Customer Privacy Settings" is checked in the app's Advanced settings (it's on by default) and whether any skip setting from the section below is on.
Does the new Shopify cookie banner write to the Customer Privacy API?
This is the test a swap most often fails. Shopify's developer page says recording consent should only happen on a visitor interaction, and "never done automatically on behalf of the visitor" [1]. The method a banner calls is setTrackingConsent, with a value per category. Shopify's own example shows what a partial write does: after setTrackingConsent({ "analytics": true }, ...), currentVisitorConsent() returns analytics: 'yes' and an empty string for the other three [1].
Install the new banner, then repeat the sheet in fresh private windows. Paste this listener into the console first, because Shopify publishes the event only when consent changes, not when the listener is added [1]:
document.addEventListener("visitorConsentCollected", (e) => {
console.log("consent collected", e.detail);
});
The event's detail carries analyticsAllowed, marketingAllowed, preferencesAllowed and saleOfDataAllowed [1]. Click through four paths and write each output into the after column:
- Accept all. Analytics, marketing and preferences should flip together.
- Decline all. All three consent answers should read
'no'. - Accept analytics only, if the new banner offers granular choices. Marketing should stay empty or
'no'. - Reopen the banner and change the answer. if the new app lets visitors do that, the event should fire again, because Shopify publishes it when consent changes [1].
One check applies only to a swap. Run the decline path from a location outside your configured regions. A banner that keeps a decline in its own cookie and never calls setTrackingConsent would leave Shopify's record unchanged. Neither vendor documents that case, so treat it as a question to answer on your own store, not a fact about any banner app. After the decline, run currentVisitorConsent(): analytics: 'no' means the decline reached Shopify's record, and an empty string means it didn't [1]. Write down what analyticsProcessingAllowed() returns as well, since that's the value the app's browser events follow. If the console shows nothing at all, see when the Customer Privacy API loads late.
Do the region defaults still match?
Shopify's rule for a third-party banner: use the same consent regions in Customer privacy settings and in the app's settings. If they differ, non-essential data can be processed before the visitor answers [2]. The same help page lists the steps: open Settings > Customer privacy > Cookie banner, remove Shopify's banner if "Remove cookie banner" is offered, set the regions, and select every region where the third-party app shows its banner [2].
From Shopify's developer docs: "For regions that are configured to require consent, non-essential purposes are not allowed by default until consent is given. For other regions, the default behavior is to allow all processing purposes." [1] Regions you configured start closed and every other region starts open. Run the sheet from three places and compare before anyone answers:
| Location | getRegion() |
Banner shown by the new app? |
analyticsProcessingAllowed() before answering |
|---|---|---|---|
| Inside a configured region | e.g. GBENG
|
should be yes | should be false
|
| In the new app's list, outside yours | a region you never added | yes |
true, the default for unconfigured regions |
| Outside both | a region neither covers | no | true |
The middle row is the failure a swap can introduce. The visitor sees a banner, but Shopify's side started open and stays open unless the banner writes a decline. Whether those regions need consent at all is a legal question; Shopify's developer page says "Consult legal counsel" [1].
One smaller fact: Shopify's developer changelog said it would stop setting the _shopify_country cookie from August 15, 2025 and pointed developers to getRegion() [3], so an older banner snippet that reads that cookie is reading nothing.
What does the app do with the answer?
The app's browser events respect Shopify's Customer Privacy API signals. GA4's browser events follow the analytics answer, and the marketing channels' browser events follow the marketing answer. Google Ads is handled differently, so this sheet doesn't cover it. The app's theme scripts re-check when the visitor answers and on each new page. Your evidence that the signals are right is the sheet and the console.
Server-side, two optional settings in the app's Advanced settings are worth checking. Both are off by default:
- Skip purchase events for visitors who declined analytics. It applies to the GA4 server-side purchase and is available on every plan, the free plan included.
- Skip purchase events for visitors who declined marketing. It's set per marketing channel, and it's a Plus setting.
Neither covers Google Ads, and both depend on "Respect Customer Privacy Settings" being checked. For the GA4 skip, in a region that requires consent, a visitor who never answered is recorded the same way as one who declined analytics. So with the skip on, a new banner that stops recording answers can lower your server-side GA4 purchases without anyone having declined anything. If you turned a skip on for the old banner, add a row for it and compare purchase counts after.
The after sheet: what a clean diff looks like
Fill in the same columns on the new banner, same windows, same locations, then read the differences. Three outcomes cover most swaps:
| Outcome | What the diff shows | What to change |
|---|---|---|
| Match | Same regions, same three answers on accept and decline, same Allowed values | Nothing. Save both sheets with the date. |
| Region drift | A location where the old banner showed a prompt and the new one doesn't, or the reverse; your Regions list and the app's list differ | Align the two lists to where the new app actually shows its banner [2]; which regions to include is a call for legal advice. |
| Category not written | Accept flips analytics but marketing stays empty, or decline leaves currentVisitorConsent().analytics empty |
Send the banner vendor the console output and Shopify's setTrackingConsent description [1]. |
Then compare the purchase counts against your before day. If the numbers moved and the sheet shows a match, the cause is elsewhere, and what to check first when tracking breaks after a theme or checkout change is the next stop.
What this record can't tell you is what happens to a returning visitor's stored answer when the banner app changes. None of the Shopify pages cited here say whether it persists or resets, and none mention swapping apps. So keep one browser profile that answered the old banner before the swap, load the store in it afterwards and run the sheet.
FAQ
Do I need to remove Shopify's built-in banner when I install a third-party one?
Shopify's help page lists "Remove cookie banner" as a step when you move to a third-party app, and says the two sets of regions need to match [2].
Why does my decline test still show analytics allowed?
Check currentVisitorConsent() after the decline. If analytics reads 'no', the banner wrote the decline, and what you're seeing is how Shopify combines that answer with your region settings [1]. If it's an empty string, the decline never reached Shopify's record.
Which plan carries which server-side skip?
The GA4 skip, "Skip purchase events for visitors who declined analytics", is available on every plan, the free plan included. The per-channel marketing skips are on Plus. Both are off by default, and neither covers Google Ads.
Check the record, then switch the banner
Before you uninstall the old banner, write down the Regions list and the consent values for a test visit, then repeat both after the new banner is live. WeltPixel Conversion Tracking sends each order's purchase from the Shopify order to eleven integrations; the free plan is GA4 only, up to 100 storefront orders a month, and Plus is $39/month [4] with no order limit and also sends admin, POS and draft orders.
Sources
- Shopify developer documentation, "Customer Privacy API", shopify.dev/docs/api/customer-privacy, accessed November 3, 2026
- Shopify Help Center, "Configuring customer privacy settings", help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings, accessed November 3, 2026
- Shopify developer changelog, "_shopify_country cookie no longer set", shopify.dev/changelog/posts/shopifycountry-cookie-no-longer-set, post dated June 16, 2025, accessed November 3, 2026
- WeltPixel Conversion Tracking, Shopify App Store listing (Discovery: GA4 tracking up to 100 orders/month; Plus $39/month), apps.shopify.com/weltpixel-conversion-tracking, accessed November 3, 2026