Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "33380",
"name": "Trek Domane+ Front Bike Light Assembly",
"price": "494.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33675",
"name": "Trek Domane+ Rear Bike Light Assembly",
"price": "226.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "23634",
"name": "Bontrager Transmitr MicroRemote",
"price": "69.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "25371",
"name": "Bontrager USB Fast Charge Cable",
"price": "12.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "37981",
"name": "Bontrager Lights USB Type-C Charge Cable",
"price": "12.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "49574",
"name": "Herrmans 4-Wire Headlight Connector",
"price": "5.99",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}