if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "36265",
"name": "Precaliber 12",
"price": "349.99",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
]
}
});
} else {
console.log("dataLayer");
}