if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "36740",
"name": "Domane+ SLR 7 AXS",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37660",
"name": "Domane+ LT Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32577",
"name": "Domane+ LT 7 Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}