Översikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SEK",
"impressions": [
{
"id": "44960",
"name": "Trek väska trunkmodell",
"price": "899.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22738",
"name": "Bontrager MIK Utility trunkväska",
"price": "1199.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33172",
"name": "Bontrager MIK Commuter Trunk trunkväska",
"price": "1099.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24465",
"name": "Bontrager City trunkväska",
"price": "934.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "33777",
"name": "Electra Charcoal trunkväska för pakethållare",
"price": "959.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "greydark",
"list": "More Options",
"position": 5
}
,
{
"id": "40322",
"name": "Electra Fern trunkväska",
"price": "959.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}