if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41426",
"name": "Émonda ALR 5",
"price": "2299.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_reddark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37299",
"name": "Émonda ALR Disc Frameset",
"price": "1199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23613",
"name": "Émonda ALR Frameset",
"price": "1149.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_orangelight",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "23644",
"name": "Émonda ALR Disc Frameset",
"price": "1149.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_orangelight",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}