if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "27028",
"name": "Trek Kids' 32 Hole 24" Wheel",
"price": "469.99",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "31213",
"name": "Trek Precaliber 24 8-Speed Wheel",
"price": "139.99",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "31210",
"name": "Trek Precaliber 12 Wheel",
"price": "135.99",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "31211",
"name": "Trek Precaliber 16 Coaster Brake Wheel",
"price": "114.99",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "10652",
"name": "Trek 16" Kids Training Wheels",
"price": "94.99",
"brand": "Bontrager",
"category": "Bike training wheels",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}