if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "41606",
"name": "District+ 1 Lowstep",
"price": "2599.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40517",
"name": "Verve+ 1 Lowstep",
"price": "2379.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40804",
"name": "District 4 Midstep",
"price": "1859.0",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40510",
"name": "District 3 Midstep",
"price": "1449.0",
"brand": "Trek",
"category": "Active & fitness bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32889",
"name": "Dual Sport 2",
"price": "669.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}