Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

DTM and pre-existing s.contextData values

time42580181
Level 3
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
time42580181
Correct answer by
Level 3
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
time42580181
Correct answer by
Level 3
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