Repository navigation
feat(datalayer): dataLayer inspector with GA4, Consent Mode, PII and snapshots - #18
Merged
Merged
Conversation
…ents, Consent Mode and PII readDataLayer runs in the MAIN world and copies window.dataLayer and the other layers GTM names into plain JSON (gtag arguments flagged, functions, DOM nodes and cycles as placeholders, depth and 1 MB caps) without calling or wrapping push. analyzeDataLayer turns entries into events and gtag commands, checks GA4 ecommerce parameters, duplicates, legacy Universal Analytics, Consent Mode v2, finds e-mails, phone numbers, IBANs and card numbers by path and masks them, cross-checks items[] with the JSON-LD Product, and compares snapshots.
…sent timeline and snapshots Inspect › dataLayer shows issues, containers and layers, every entry as a filterable tree, the consent timeline and a masked JSON view; Save snapshot keeps up to 50 masked reads in browser.storage.local to compare with each other or with the current read. Copy report and Copy for agent give paths and fixes, never a personal value.
…purchase and an e-mail
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.
A read-only dataLayer inspector, like the JSON-LD Tester dataLayer tab.
dataLayerand the other layers GTM names in the MAIN world without calling or wrapping anything; gtagarguments, callbacks, DOM nodes and cycles are serialized safely.transaction_id, non-numeric or zerovalue, currency not ISO 4217,items[]withoutitem_id/item_name, duplicate events and transaction ids,ecommerce: nullnot cleared, legacy Universal Analytics structure.ad_user_data/ad_personalization, invalid values.items[]with the JSON-LD Product (price, currency, SKU).Closes #11