Updated
The short answer
For a WooCommerce store selling to the EU, the usual approach to analytics and consent:
- the cart and session cookies the store needs can run without consent;
- analytics, advertising and recording tools wait until the visitor agrees;
- “Reject” is as easy as “Accept”, and the choice can be changed later;
- every tool reads the same answer — through the WP Consent API or your banner's own integration.
This is general guidance, not legal advice — rules differ by country, so check yours.
What needs consent, and what doesn't
In the EU, storing or reading information on a visitor's device generally needs their consent unless it is strictly necessary for the service they asked for. For a store, that line usually falls like this:
- Usually necessary: the cart, the checkout session, the login, security.
- Usually needs consent: analytics, advertising pixels, remarketing, session recording, most chat and review widgets that track.
A banner that holds up
- “Accept” and “Reject” on the first layer, equally easy.
- Nothing ticked in advance, and nothing loaded before the visitor answers.
- A short explanation of what each category does, and a link to your privacy policy.
- A way to change the answer later — a link in the footer.
Connecting the banner to your tools
- WP Consent API. If your banner plugin and your analytics plugins support it, the visitor's choice reaches all of them without code.
- Google Consent Mode for Google Analytics and Google Ads: the banner tells Google's tags what was allowed.
- Each tool's own call for the rest — most analytics and recording tools have a function the banner can call when the visitor accepts.
- Global Privacy Control: treat a browser that sends it as having opted out.
Testing it
- Open the store in a private window and, before answering the banner, check the browser's storage and network: no analytics or ad requests.
- Reject, reload, and check again.
- Accept, and confirm the tools start.
- Change your answer from the footer link and confirm they stop.
What declining costs your data
Visitors who decline aren't in your analytics. That is the point, and it means analytics will always count fewer visitors than really came — while your store still records every order. Compare trends, not absolute numbers, and take revenue from the store.
Consent in StorePilot
- Require consent, one switch per site: nothing is stored on the visitor's device and nothing is sent from their browser until your banner signals consent — enforced on the server too, and nothing buffered meanwhile.
- The WP Consent API is supported: a visitor who declines through a banner that uses it is not tracked.
- Global Privacy Control is always honoured, on every site.
- Orders still arrive from your store's server whatever the visitor answered — they are your record of a sale, not tracking of the visit. From the next plugin release, contact forms a visitor submits arrive too: a message they chose to send, linked to their browsing only with consent.
Install the WordPress plugin, see store analytics, or read about the privacy settings.

