if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41354",
"name": "Émonda SL 7",
"price": "7739.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greenlight_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41352",
"name": "Émonda SL 6",
"price": "6239.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36974",
"name": "Émonda SL 5",
"price": "4359.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_bluedark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}