if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "46152",
"name": "Checkmate SLR 9 AXS",
"price": "18999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "46692",
"name": "Checkmate SLR 7 AXS",
"price": "11999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "greendark_greenlight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}