Overblik
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "137.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "More Options",
"position": 1
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing-kasket med 5 paneler",
"price": "299.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing-kvasthue",
"price": "259.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "47331",
"name": "Rapha Trail 6 Panel Cap",
"price": "255.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}