if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "36713",
"name": "Domane+ SLR 9",
"price": "18999.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36709",
"name": "Domane+ SLR 7",
"price": "14999.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36705",
"name": "Domane+ SLR 6 Pro",
"price": "13499.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36143",
"name": "Domane+ AL 5",
"price": "5499.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}