I would like to know the correct function for Google Tag Manager, when you create a Custom JavaScript, how can I get the product "id"("259496742","1061024") when you have an array.
{
"0": "event",
"1": "purchase",
"2": {
"transaction_id": "ORD00174",
"affiliation": "Lightspeed",
"value": "0.00",
"currency": "EUR",
"tax": "0.00",
"shipping": "0.00",
"items": [
{
"id": 259496742,
"name": "Haarklem Print",
"currency": "EUR",
"brand": "",
"variant": 259496742,
"price": "9.95",
"quantity": 1
},
{
"id": 1061024,
"name": "Lila Hoed",
"currency": "EUR",
"brand": "",
"variant": 263376478,
"price": "19.95",
"quantity": 1
}
],