if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "35920",
"name": "1120-stelkit",
"price": "9999.0",
"brand": "Trek",
"category": "1120",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30187",
"name": "Stache C stelkit",
"price": "14399.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark_greenvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "26914",
"name": "1120 stelkit",
"price": "7499.0",
"brand": "Trek",
"category": "1120",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}