Skip to content

Fire events from the consent layer - #76

Open
0x7f wants to merge 1 commit into
mainfrom
cp-4886-add-missing-wall-and-sdk-analytics-events-to-the-react
Open

0x7f wants to merge 1 commit into
mainfrom
cp-4886-add-missing-wall-and-sdk-analytics-events-to-the-react

Conversation

@0x7f

@0x7f 0x7f commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The React Native consent layer speaks the same postMessage bridge protocol as the web SDK's first-layer iframe and loads the same first-layer page, but never fired the matching events the web SDK fires as a side effect of handling those same bridge messages.
  • Adds sdk/load on SDK init, wall/show when the layer is triggered to display, wall/rendered once FIRST_LAYER_READY confirms it, wall/accept on ACCEPT_ALL and on CMP-tool consent completion, wall/<page> on GO_TO, and wall/cmp / wall/vendorlist on SHOW_CMP_TOOL / SHOW_VENDOR_LIST_TOOL — matching renderFunnel.js / sendUserToFunnel.ts / create.ts in the web SDK.
  • Footer link clicks (wall/footer-link) already flow through the shared first-layer page's own event call over the existing SEND_EVENT bridge message; no change needed there.

The consent layer speaks the same postMessage bridge protocol as the
web SDK's first-layer iframe and loads the same first-layer page, but
never sent the matching analytics events the web SDK fires as a side
effect of handling those same bridge messages. Only explicit
SEND_EVENT messages reached analytics before.

Mirrors renderFunnel.js/sendUserToFunnel.ts/create.ts on the web SDK:
sdk/load on init, wall/show when the layer is triggered to display,
wall/rendered once FIRST_LAYER_READY confirms it, wall/accept on
ACCEPT_ALL and on CMP-tool consent completion, wall/<page> on GO_TO,
and wall/cmp / wall/vendorlist on SHOW_CMP_TOOL / SHOW_VENDOR_LIST_TOOL.
@0x7f 0x7f changed the title Fire wall/sdk analytics events from the consent layer Fire events from the consent layer Sep 25, 2026
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.

1 participant