Skip to content
Concepts

Consent

How Product Metrics reads your cookie banner as Consent Mode v2 signals, and what it sends to Google Ads, Meta and ChatGPT Ads with and without consent.

Product Metrics follows the choice each visitor makes in your cookie banner. Consent starts denied, and getting through ad blockers never overrides it.

The tracking script reads the banner as the four Consent Mode v2 signals and stores them with the visit. When the order is confirmed, those signals decide what may go to each channel. The rest of the pipeline is How it works.

A matrix of the visitor's consent choice against Google Ads, Meta and ChatGPT Ads. Everything allowed sends the full conversion everywhere. Ad user data without ad storage sends customer data without the ad click. Ad storage alone sends only the Google Ads order with the click. Marketing without analytics drops the custom events on Meta and ChatGPT Ads. Nothing allowed sends nothing.A matrix of the visitor's consent choice against Google Ads, Meta and ChatGPT Ads. Everything allowed sends the full conversion everywhere. Ad user data without ad storage sends customer data without the ad click. Ad storage alone sends only the Google Ads order with the click. Marketing without analytics drops the custom events on Meta and ChatGPT Ads. Nothing allowed sends nothing.A matrix of the visitor's consent choice against Google Ads, Meta and ChatGPT Ads. Everything allowed sends the full conversion everywhere. Ad user data without ad storage sends customer data without the ad click. Ad storage alone sends only the Google Ads order with the click. Marketing without analytics drops the custom events on Meta and ChatGPT Ads. Nothing allowed sends nothing.A matrix of the visitor's consent choice against Google Ads, Meta and ChatGPT Ads. Everything allowed sends the full conversion everywhere. Ad user data without ad storage sends customer data without the ad click. Ad storage alone sends only the Google Ads order with the click. Marketing without analytics drops the custom events on Meta and ChatGPT Ads. Nothing allowed sends nothing.
What each consent choice lets through, per channel

The four signals

SignalBanner categoryWhat it allows
ad_user_dataMarketingHashed customer data with the order; any Meta or ChatGPT Ads (OpenAI) event at all
ad_storageMarketingThe ad click: Google’s gclid, gbraid or wbraid; Meta’s fbp and fbc; ChatGPT Ads’ __oppref and __obref
ad_personalizationMarketingAdding the customer to Google Ads customer lists; without it, ChatGPT Ads events carry opt_out: true
analytics_storageAnalyticsThe Google Ads profit, new and returning customer and LTV conversions, and the Product Metrics custom events on Meta (profit, new and returning, LTV) and ChatGPT Ads (revenue, profit, LTV)

Each signal is granted or denied. Anything your banner doesn’t set stays denied.

Visitor allowedGoogle AdsMetaChatGPT Ads
EverythingThe order with hashed customer data and the ad clickPurchase and the custom events, with customer data and fbp/fbcorder_created and the custom events, with customer data and oppref/obref
Ad user data, not ad storageThe order with hashed customer data, no clickEvents with customer data, no fbp/fbcEvents with customer data, no oppref/obref
Ad storage, not ad user dataThe order with the click, no customer dataNothingNothing
Marketing, not analyticsProduct Metrics - Revenue only, no profit, customer type or LTV conversionsPurchase only, no custom eventsorder_created only, no custom events
NothingNothingNothingNothing
Visitor A   ad_user_data, ad_storage and analytics granted
  → Google Ads: order + hashed email + gclid
  → Meta: Purchase, PMOrderProfit, PMNewCustomer, …
          with hashed email, fbp, fbc
  → ChatGPT Ads: order_created, pm_order_profit, pm_revenue_ltv, …
            with hashed email, oppref
Visitor B   ad_storage granted only
  → Google Ads: order + gclid
  → Meta: nothing
  → ChatGPT Ads: nothing

Each Google Ads conversion also carries the visitor’s ad user data and ad personalisation choices.

Try it

Open Tracking and look under Configure consent: it names the banner your store’s tracking reads, or Not configured. Choose the banner there to change it.

Ask your assistant: “Which consent banner does Product Metrics read on my store?”

Rules

  1. Denied until the banner says otherwise. Before the visitor chooses, every signal is denied.
  2. The banner you choose is the one read. If Configure consent names a banner your store doesn’t show, Product Metrics can’t read the choice and treats it as not given.
  3. Withdrawal wins. If a visitor withdraws consent after checkout, their unsent conversions are dropped.
  4. Erasure wins. After a privacy request erases a shopper’s data, their unsent events are never sent.
  5. Customer lists need more. A customer joins a Google Ads list only with ad user data and ad personalisation. Removals are always sent.
  6. Meta and ChatGPT Ads have no consent mode. So nothing goes to Meta or ChatGPT Ads without ad user data.
  7. Profit needs analytics too. Google Ads gets the profit, new and returning customer and LTV conversions only when the visitor allowed analytics and ad user data, as Meta’s custom events do. Otherwise the order goes to Product Metrics - Revenue alone.

Banners per platform

PlatformBanners Product Metrics reads
ShopifyShopify Customer Privacy, or OneTrust, Cookiebot, Usercentrics or Osano
WooCommerceOneTrust, Cookiebot, Usercentrics or Osano. Clear your full-page cache after changing it.
MagentoOneTrust, Cookiebot, Usercentrics or Osano, or your own banner through ProductMetrics.setConsent(). Magento’s cookie restriction notice does not grant consent.
LightspeedOneTrust, Cookiebot, Usercentrics or Osano
ShopwareShopware’s own cookie manager (leave Not configured), or OneTrust, Cookiebot, Usercentrics or Osano
Any website (Cloudflare)OneTrust, Cookiebot, Usercentrics or Osano

Your own banner

With a banner Product Metrics doesn’t read itself, pass every choice explicitly: once the script is ready, and again whenever the visitor changes it.

await ProductMetrics.whenReady()
ProductMetrics.setConsent({
  analytics_storage: 'granted',
  ad_storage: 'denied',
  ad_user_data: 'granted',
  ad_personalization: 'denied',
})

All four keys are required, each granted or denied.

Where next