if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41647",
"name": "Top Fuel 9.8 XT Gen 3",
"price": "4874.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41646",
"name": "Top Fuel 9.8 GX AXS T-Type Gen 3",
"price": "4409.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "green",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37062",
"name": "Top Fuel 9.8 GX AXS Gen 3",
"price": "3639.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41351",
"name": "Top Fuel 8 GX AXS T-Type Gen 3",
"price": "3284.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35178",
"name": "Top Fuel 9.7 Gen 3",
"price": "2362.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35072",
"name": "Top Fuel 8 Gen 3",
"price": "2359.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36789",
"name": "Top Fuel 8 Gen 3",
"price": "2359.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}