if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "47072",
"name": "Checkpoint SL 6 AXS Gen 3",
"price": "6699.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "blue_bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47071",
"name": "Checkpoint SL 5 AXS Gen 3",
"price": "5999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "3799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "3799.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "bluedark_red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35293",
"name": "Checkpoint SLR 6 AXS",
"price": "11499.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}