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