Managing the sub array from the datalayer utag.data

Gold Contributor
Gold Contributor

Hi  


I have a data layer that represent array in  object [0]  hi need to send only one element fro the data layer to the vendor tag .

 

Do we have any extension to execute or handle in more systematic way? 

in my  data layer 

 

abc [
{
"alfa": "yyy",
"category": "xxx",
"cost": "200",
"quantity": 1,
"color: "test12345",
"new": false
}],
   I need only color value need to be mapped  with the vendor tags.

 

 

 

 

2 REPLIES 2

Managing the sub array from the datalayer utag.data

Gold Contributor
Gold Contributor
@santosh_sharma

I believe you can use Set Data Value or JS extension to set a variable and defined the condition to capture the exact expected value. Then scope the vendor tag.

Managing the sub array from the datalayer utag.data

Gold Contributor
Gold Contributor

One way to do this would be to add an extension where you load this variable into the data layer:

b.color = abc[0]["color"]

If I have seen further it is by standing on the shoulders of giants
Public