if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "36995",
"name": "Dual Sport 2 Equipped Gen 5",
"price": "7999.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40511",
"name": "Dual Sport 2 Mid-step Gen 5",
"price": "7599.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40508",
"name": "Dual Sport 2 Equipped Gen 5",
"price": "7599.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40503",
"name": "Dual Sport 3 Equipped Mid-step Gen 5",
"price": "9599.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40502",
"name": "Dual Sport 3 Equipped Gen 5",
"price": "9599.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}