if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35169",
"name": "Checkpoint SL 5",
"price": "4249.99",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red_bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30915",
"name": "Domane+ LT Gen 1",
"price": "4739.4",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36149",
"name": "Domane SL 5 Gen 4",
"price": "4199.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33086",
"name": "Domane AL 5 Gen 3",
"price": "2699.99",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}