Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sdk/loadon SDK init,wall/showwhen the layer is triggered to display,wall/renderedonceFIRST_LAYER_READYconfirms it,wall/acceptonACCEPT_ALLand on CMP-tool consent completion,wall/<page>onGO_TO, andwall/cmp/wall/vendorlistonSHOW_CMP_TOOL/SHOW_VENDOR_LIST_TOOL— matchingrenderFunnel.js/sendUserToFunnel.ts/create.tsin the web SDK.wall/footer-link) already flow through the shared first-layer page's own event call over the existingSEND_EVENTbridge message; no change needed there.