Overblik
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "44960",
"name": "Trek bag bagagerumsmodel",
"price": "599.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22738",
"name": "Bontrager MIK Utility bagageboks",
"price": "799.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33172",
"name": "Bontrager MIK Commuter Trunk Bag",
"price": "749.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24465",
"name": "Bontrager City bagageboks",
"price": "679.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "33777",
"name": "Electra Charcoal bagagebærerboks",
"price": "719.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "greydark",
"list": "More Options",
"position": 5
}
,
{
"id": "40322",
"name": "Electra Fern bagagebærerboks",
"price": "719.0",
"brand": "Electra",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}