Hello all,
I'm working with the W3 dataLayer and want to trigger a rule when a certain product is on the page, but I don't know how I can create a data-element that is based on a array. So for example I have the following dataLayer and I want to trigger a rule when the product name contains laptop. How can I do this?
var digitalData = {
"listing":
[
{
"productInfo":
{
"productName": "tv",
"productId": "19381654"
}
,
"productInfo":
{
"productName": "laptop",
"productId": "19381652"
}
}
]
}