if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "47096",
"name": "Slash+ 9,9 X0 AXS T-Type",
"price": "147899.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47091",
"name": "Slash 9.7 SLX/XT",
"price": "98599.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}