Skip to content

Fix: WP doesn`t honor consent off setting - #32

Merged
kskonovalov merged 2 commits into
mainfrom
fix/consent-mode-disabled
Dec 2, 2026
Merged

kskonovalov merged 2 commits into
mainfrom
fix/consent-mode-disabled

Conversation

@oleksandr-kolesnykov

@oleksandr-kolesnykov oleksandr-kolesnykov commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Implemented:

  • WooCommerce and form server events send for every visitor when the Site's Consent mode is disabled, read from the not-required consent cookie the tracking script writes (script PR: PixelFlow-org/pixelflow-scripts#118, ships first)

Updated:

  • events held while a banner was unanswered are sent instead of dropped once Consent mode is disabled
  • an earlier banner decline or a WP Consent API refusal no longer blocks events on Sites with Consent mode disabled; Sites with it enabled behave as before
  • a buyer who returns to their order-received page has the Consent mode disabled state recorded on that order, so its Purchase sends then and on a later status change; other page views do not look up orders
  • CI: Plugin Check ignores the bundled React rule, and the form hold test no longer fails at random
  • plugin version 1.2.4

Ticket: https://app.notion.com/p/Fix-WP-doesn-t-honor-consent-off-setting-429a2ca80ee680958d2df8c37b111cef

Implemented:
- server events send for every visitor when the Site's Consent mode is disabled, using the not-required consent cookie the tracking script writes

Updated:
- WooCommerce and form events held for an unanswered banner are sent instead of dropped once Consent mode is disabled
- an earlier banner decline and a WP Consent API refusal no longer block WooCommerce or form events on Sites with Consent mode disabled
- returning buyers' open orders record the Consent mode disabled state, so a later Purchase on them sends
- version 1.2.4

Ticket: https://app.notion.com/p/Fix-WP-doesn-t-honor-consent-off-setting-429a2ca80ee680958d2df8c37b111cef
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

Updated:
- the Consent mode disabled state is recorded on a buyer's order only on their own order-received request, no longer on every storefront page view, so visitors of a Consent mode disabled store do not trigger an order lookup per request
- tests cover a form submission, a held form and a declined order's Purchase on a Consent mode disabled Site
- the form hold test no longer fails at random on its own random token
- Plugin Check in CI ignores the bundled React rule until the settings app loads React from WordPress

Ticket: https://app.notion.com/p/Fix-WP-doesn-t-honor-consent-off-setting-429a2ca80ee680958d2df8c37b111cef
@kskonovalov
kskonovalov merged commit 66b37c8 into main Dec 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants