Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

DTM and pre-existing s.contextData values

Avatar

Level 3

Hi 

We've a number of implementations where we've extensively used s.contextData["name"] = "value".

Whats the best way to integrate using existing contextData on the page and use that data to trigger events etc in DTM?  When I try to use it I keep getting a JS error saying that s.contextData is not defined.

Thanks

Tim

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi

Its not actually about how to use them - we know how to do that - it's how to get them working in DTM and AppMeasurement.js as they're not even getting passed through.  It appears like DTM is resetting contextData and so no value is ever passed through.

T

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Hi

Its not actually about how to use them - we know how to do that - it's how to get them working in DTM and AppMeasurement.js as they're not even getting passed through.  It appears like DTM is resetting contextData and so no value is ever passed through.

T