if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41587",
"name": "Domane AL 2 Gen 4",
"price": "1599.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33086",
"name": "Domane AL 5 Gen 3",
"price": "2699.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_red",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}