if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "27991",
"name": "FX 2 Disc",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35055",
"name": "FX 3 Disc Stagger Gen 3",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32262",
"name": "FX Sport 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greylight_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35004",
"name": "FX 2 Disc Stagger Gen 3",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}