if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "41406",
"name": "Trek Kovee Elite Clipless Pedal Set",
"price": "169.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41407",
"name": "Trek Line Elite Clipless Pedal Set",
"price": "189.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41408",
"name": "Trek Kovee Pro Clipless Pedal Set",
"price": "219.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41405",
"name": "Trek Line Comp Clipless Pedal Set",
"price": "149.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41404",
"name": "Trek Kovee Comp Clipless Pedal Set",
"price": "119.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}