Skip to content
Privacy & security

Cookie consent, Consent Mode and server-side purchases: what happens after a refusal

A customer refused cookies and the pixel is silent. What the Meta Pixel and Consent Mode do, what a purchase from the order is and what the shop script does.

Published: 7 min read
Orders in the panel with the order source column read by the shop script
On this page
  1. What happens after a refusal
  2. A purchase from the order: what it is
  3. What the Basketly shop script does
  4. Three customer scenarios
  5. What Basketly does not do
  6. A 15-minute checklist
  7. Next step
  8. Sources

Key facts (as of 2026-10-30)

  • Meta has the methods fbq('consent', 'revoke') and fbq('consent', 'grant'), which pause and resume pixel events.
  • Google's Consent Mode has four consent signals and does not store the user's choices for you.
  • The Basketly shop script starts by itself once loaded; your consent tool decides whether and when to load it and passes a refusal through setConsent(false).
  • A purchase read from the order on the server needs a legal basis that you confirm; Basketly is not a consent tool and gives no legal advice.
  • Withdrawing consent deletes attribution data in Basketly, but does not undo purchases already passed to Meta.

On r/FacebookAds a shop owner writes: "A decent chunk of visitors refuse cookies, which means the pixel never fires for them." (thread). That customer's purchase is in the shop, but not in ad reports. This article sorts out what Google's and Meta's documentation say, what a purchase read from the order looks like, and what the Basketly script does while it runs and when a customer refuses.

This is not legal advice. When you may process a customer's data, and on what basis, depends on your situation. Below we describe only how the tools behave.

What happens after a refusal

Meta Pixel

According to Meta's documentation:

  • fbq('consent', 'revoke') pauses sending pixel events. It has to be called on every page, before fbq('init', ...).
  • fbq('consent', 'grant') resumes sending after consent.
  • Meta allows a banner that requires consent before the pixel runs. If another system, such as a tag manager, already handles consent, the banner code can be left out.

In practice: how the pixel behaves after a refusal depends on how your consent tool is connected to it. If the pixel in Shoper was installed with a plugin or by hand, check it in the pixel test.

Google's documentation describes four signals: ad_storage, ad_user_data, ad_personalization and analytics_storage (commonly called "Consent Mode v2"). You set defaults with gtag('consent', 'default', ...) on every page, before config and event commands, and send a change of choice with gtag('consent', 'update', ...). The page stresses that Consent Mode "doesn't save consent choices": you have to store them yourself, for example in a first-party cookie.

When ad_storage is denied, new advertising cookies are not set, but full page URLs, including ad click parameters, are still sent. With ads_data_redaction set to true, click identifiers in Google Ads and Floodlight requests are redacted. Google describes basic and advanced modes on a separate page; the choice depends on your company's guidelines.

A purchase from the order: what it is

A purchase read from the order is created on the server: the shop (Shoper, IdoSell, BaseLinker, WooCommerce, Shopify) hands over a paid order, and Basketly sends a Purchase event to Meta from it. It does not depend on the browser, so it is not lost to an ad blocker or after a BLIK payment with a redirect (see BLIK, Przelewy24 and PayU).

Its characteristics:

  • it carries order data: value, currency, product ids, e-mail and phone (they reach Meta as hashes; see the article on hashing),
  • it does not carry browser data such as the ad click (fbc) or the fbp identifier, unless the shop script collected them,
  • it reaches Meta as a system-generated event, because without a browser there is no user agent,
  • it requires you, when connecting the shop, to confirm the legal basis for passing the data on. Basketly only records that; it does not judge whether the basis is right.

What the Basketly shop script does

The script (/collector.js) is separate from a purchase read from the order, and works only where the shop has loaded it.

  • It starts by itself. Once a page loads it, it runs at once; setConsent(true) is optional (it resumes the script after an earlier refusal). The shop decides whether and when to load it, e.g. its consent tool after consent.
  • While running it keeps an attribution id for up to 30 days, uses the existing _fbp or creates its own identifier, and takes fbc only from a real click (fbclid) or the _fbc cookie. It also collects Google Ads, Microsoft Ads, TikTok, Pinterest and ChatGPT Ads click ids, UTM parameters and the referring page. It works without the Meta Pixel.
  • It ties an order to a visit. That lets the Source column in Orders show the last ad click; it is its own reading, not Meta's attribution. Details in where an order came from.
  • After a refusal or withdrawn consent (setConsent(false), or states without marketing) it stops at once, clears local state and reports deletion of attribution data from the server. It does not withdraw purchases already passed to Meta.

The script never creates fbc without a real click. The script's public key cannot confirm a purchase; only the shop does, through the server.

Three customer scenarios

1. The customer refuses consent. The Meta Pixel and Google tags behave according to how your consent tool is configured. The shop script stores and sends nothing if the shop did not load it or the refusal reached it. The order reaches the shop as always, and if the shop is connected through its API, the paid order can be read on the server and sent as a purchase with the order's data, on the legal basis you confirmed. That purchase carries no browser data.

2. The customer gives consent. Your tool loads the script (or calls setConsent(true) to resume it after an earlier refusal) and the script runs: it stores an attribution id, reads the ad click, and when the order is tied to the visit the Source column shows the last click. A purchase from such an order also carries browser data, such as fbp and fbc.

3. The customer withdraws consent. When the script gets the refusal, it stops and clears its local state and reports deletion of attribution data from the server. A purchase already passed to Meta stays where it is.

In short: consent changes the quality of data in a purchase and whether the order's source is available, but the order in the shop always exists. What you may do with it you decide, with a lawyer.

What Basketly does not do

  • It is not a consent tool (CMP). It shows no banner and collects no consent. You connect your own tool to it.
  • It does not implement Consent Mode in the Google tags on your site.
  • It does not judge the legal basis and gives no legal advice. It records your confirmation.
  • It does not promise Meta will attribute a purchase to an ad. Accepting an event is a receipt, not proof of attribution or optimisation.
  • It does not undo sent events. Withdrawing consent concerns attribution data collected by the script.

A 15-minute checklist

  1. Check in your consent tool what calls fbq('consent', ...) and gtag('consent', ...), and whether defaults are set before other commands.
  2. Refuse consent in a private window and check in Events Manager whether pixel events really paused.
  3. Check that the consent tool loads the shop script only after marketing consent and calls its setConsent(false) after a refusal.
  4. Ask a lawyer or a data protection officer on what basis you pass on purchases from orders, and only then confirm it in Basketly.

Next step

Do item 2 of the list: 5 minutes and one private browser window. To see the Source column and the Purchase balance, open the demo. To connect your own shop, create an account; plan limits are in pricing. Sending is described on the Meta Conversions API page and the term in the glossary entry Conversions API. How to avoid duplicates with two routes is explained in event deduplication.

Sources

About the author

Aleksander

Founder of Basketly.io, BooksyAudit.pl and SMSPortal.app

Founded Basketly.io, BooksyAudit.pl and SMSPortal.app. In the knowledge base he explains how to send shop purchases to Meta, how to keep a product catalogue in shape and how to measure what a purchase from ads costs.

All articles by the author

Frequently asked questions

What happens to the Meta Pixel after a refusal of consent?

Meta's documentation describes the method fbq('consent', 'revoke'), which pauses pixel events, and fbq('consent', 'grant'), which resumes them after consent. Revoke has to be called on every page before fbq('init'. How to do that in your shop depends on your consent tool.

What is Consent Mode?

It is a Google mechanism in which tags adjust data collection to consent. According to the documentation it has four signals: ad_storage, ad_user_data, ad_personalization and analytics_storage. Defaults are set with gtag('consent', 'default') before other commands, and a change of choice is sent with gtag('consent', 'update'). Consent Mode does not store the user's choices; you must keep them yourself.

May I send a purchase to Meta from the server without the customer's cookie consent?

We do not decide that. It is a question about the legal basis for processing the customer's data and it depends on your situation. Take it to a lawyer or a data protection officer, or check your supervisory authority's guidance. Basketly gives no legal advice; when you connect a shop it only requires you to confirm the legal basis for passing the data on.

Is Basketly a consent management tool (CMP)?

No. Basketly does not show a banner and does not collect consent. The shop script starts by itself once it is loaded on a page. Consent is the shop's decision, as with other marketing scripts: your consent tool decides whether and when to load it, and can call setConsent(false) after a refusal.

What does Basketly do when a customer withdraws consent?

The script clears its local state and reports deletion of the attribution data stored on the server. It does not undo purchases that have already been passed to Meta.

What does a purchase without consent lose?

A purchase read from the order carries no browser data such as the ad click (fbc), so Meta has weaker data to match on. It does carry order data, such as e-mail and phone, sent as a hash.

Get started in under 5 minutes

Connect your shop to your ad platforms and see how many purchases really reach them.

  • Free up to 100 orders a month
  • No developer needed
  • Purchase balance and self-check