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": "33491",
"name": "Roscoe 24",
"price": "849.0",
"brand": "Trek",
"category": "Kids' mountain bikes",
"variant": "reddark_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "28592",
"name": "Precaliber 24 8-speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pinkdark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "28589",
"name": "Precaliber 24 8-speed Suspension",
"price": "539.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}