if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "36846",
"name": "Precaliber 24 8-Speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36266",
"name": "Precaliber 16 Coaster Brake",
"price": "399.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36268",
"name": "Precaliber 20 7-Speed",
"price": "479.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36271",
"name": "Precaliber 20 Freewheel",
"price": "419.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36265",
"name": "Precaliber 12",
"price": "379.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "28592",
"name": "Precaliber 24 8-speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pinkdark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "28589",
"name": "Precaliber 24 8-speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "17476",
"name": "Kickster",
"price": "289.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}