DTM data element targeting component of array
Hi,
I have a page at:
http://www.threeekings.com/dtm/demosite/consumerJSON.html
There's a data layer with an element 'planCategory'. In the console, I can access the element's value by typing:
consumerJSON.planProfiles[0].planCategory
which returns:
"MAPD"
But when I try to create a data element to do the same thing, I get empty quotes:
_satellite.getVar('planCategory')
""
My attempts to create a functioning data element include:
- JS Object, with Path = window.consumerJSON.planProfiles[0].planCategory
- JS Object, with Path = consumerJSON.planProfiles[0].planCategory
- Custom Script, with window.consumerJSON.planProfiles[0].planCategory in the editor
So far, all of the above are giving me
or
in the console
Any ideas what I could do differently so that the data element populates with
"MAPD" ?
Thanks!