if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "47243",
"name": "FX Sport 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47256",
"name": "FX Sport 6",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "bronze_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47263",
"name": "FX Sport 5",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35787",
"name": "FX Sport 6",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40822",
"name": "FX Sport 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35786",
"name": "FX Sport 5",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "29466",
"name": "Allant+ 9.9S",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "32262",
"name": "FX Sport 4",
"price": "",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greylight_grey",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}