if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "47218",
"name": "Domane+ AL 5",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36145",
"name": "Domane+ AL 5",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36141",
"name": "Domane+ AL 5",
"price": "",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}