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