Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "44960",
"name": "Trek bag bagasjeromsmodell",
"price": "899.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22738",
"name": "Bontrager MIK Utility Trunk Bag",
"price": "1199.2",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33172",
"name": "Bontrager MIK Commuter Trunk Bag",
"price": "1099.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24465",
"name": "Bontrager City Trunk Bag",
"price": "934.15",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "33777",
"name": "Electra Charcoal Trunk Rear Rack Bag",
"price": "767.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "greydark",
"list": "More Options",
"position": 5
}
,
{
"id": "35100",
"name": "Bontrager-Electra MIK Stick",
"price": "109.0",
"brand": "Basil",
"category": "Bike bags",
"variant": "grey",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}