if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "35956",
"name": "Domane LT+ Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35759",
"name": "Domane+ LT 7 Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "redlight_bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35761",
"name": "Domane+ LT 9 Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30915",
"name": "Domane LT+ Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32577",
"name": "Domane+ LT 7 Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}