Översikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "36291",
"name": "Trek Original t-shirt, dam",
"price": "299.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 1
}
,
{
"id": "40637",
"name": "Trek Fade Unisex T-Shirt",
"price": "179.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "tealdark",
"list": "More Options",
"position": 2
}
,
{
"id": "40639",
"name": "Trek Check Script Unisex T-Shirt",
"price": "179.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "bluedark",
"list": "More Options",
"position": 3
}
,
{
"id": "40638",
"name": "Trek Fade Women's T-Shirt",
"price": "179.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "tealdark",
"list": "More Options",
"position": 4
}
,
{
"id": "26593",
"name": "Trek t-shirt i dammodell",
"price": "125.0",
"brand": "Trek",
"category": "T-Shirts",
"variant": "greydark",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}