if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "47331",
"name": "Rapha Trail 6 Panel Cap",
"price": "390.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41980",
"name": "Trek Oh Deer Beanie",
"price": "179.4",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "179.4",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5 Panel-kaps",
"price": "399.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing Pom Beanie",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}