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": "CATEGORY",
"position": 1
}
,
{
"id": "33675",
"name": "Trek Domane+ Rear Bike Light Assembly",
"price": "226.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23634",
"name": "Bontrager Transmitr MicroRemote",
"price": "69.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "25371",
"name": "Bontrager USB Fast Charge Cable",
"price": "12.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37981",
"name": "Bontrager Lights USB Type-C Charge Cable",
"price": "12.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "29079",
"name": "Supernova M99 to Bontrager Elite Light Faceplate Bolt",
"price": "9.99",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "greylight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "49574",
"name": "Herrmans 4-Wire Headlight Connector",
"price": "5.99",
"brand": "HERRMANS",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}