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