if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "36268",
"name": "Precaliber 20 7-Speed",
"price": "499.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28106",
"name": "Precaliber 20 7-speed",
"price": "499.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "28107",
"name": "Precaliber 20 7-speed",
"price": "499.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "28293",
"name": "Precaliber 20",
"price": "449.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "28294",
"name": "Precaliber 20",
"price": "449.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}