Is it possible to delete or overwrite an

Is it possible to delete or overwrite an event payload property for ecommerce events via tool settings? If I configure a Default Field foo, the value it will overwrite an event payload property foo field in a standard tracked event but not (a custom field) in an ecommerce tracked event; the ecommerce event receives the original foo payload property. I can add a totally new field bar and it shows up in the payload of both standard and ecommerce event payloads.
2 Replies
Mackenly
Mackenly7d ago
This may be a use case for a Context Enricher
bbickerton
bbickertonOP6d ago
Hmm. Looks like context enrichers are zaraz-wide rather than tool-specific. Some of our custom tools need the custom foo property coming in the payload (both standard and ecommerce). Our problem is that several official tools (e.g. GA4) process a known set of payload properties and then pass along all additional properties as-is to the third-party; we don't want foo getting sent there, hence trying to clear it for that specific tool using a Default Field. I tried the enhancer anyway and even if i delete the foo property or overwrite it in the enricher - and i can see change with a console.log from the enricher - the original value still shows up in the payload received by the tools

Did you find this page helpful?