if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "3799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "3799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "white_black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}