if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "35002",
"name": "FX 1 Disc Stagger",
"price": "599.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35060",
"name": "Dual Sport 1 Gen 4",
"price": "599.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32736",
"name": "Verve 1 Disc Lowstep",
"price": "599.99",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}