if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "34132",
"name": "Bontrager Circuit Road Cycling Shoe",
"price": "259.99",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21719",
"name": "Bontrager Circuit Road Cycling Shoe",
"price": "239.99",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37095",
"name": "Trek Quantum Women's Fitness Bike Shorts",
"price": "199.99",
"brand": "Trek",
"category": "Women's fitness & commuter apparel",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34130",
"name": "Bontrager Foray Mountain Bike Shoes",
"price": "349.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark_orangevisibility",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}