Översikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "40642",
"name": "Trek Bicycle Co 5 Panel Hat",
"price": "299.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "More Options",
"position": 1
}
,
{
"id": "37339",
"name": "Trek Circle toppluva",
"price": "209.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "41983",
"name": "Trek Label Fisherman Beanie",
"price": "179.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing fempanelskeps",
"price": "399.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing tofsmössa",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "45020",
"name": "100% Trek Factory Racing truckerkeps",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "45023",
"name": "100% Trek Factory Racing toppluva med uppvikbar resår",
"price": "349.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}