Overblik
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "37324",
"name": "Trek Ride Club t-shirt",
"price": "199.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "36291",
"name": "Trek Original t-shirt til kvinder",
"price": "169.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "41971",
"name": "Trek Chain Stitch Unisex Hoodie",
"price": "447.0",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "More Options",
"position": 3
}
,
{
"id": "40152",
"name": "Poloshirt Santini Trek-Segafredo Team herre",
"price": "240.0",
"brand": "Santini",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "137.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "More Options",
"position": 5
}
,
{
"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": 6
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing-kvasthue",
"price": "259.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "47331",
"name": "Rapha Trail 6 Panel Cap",
"price": "255.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}