if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "5999.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "5799.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}