Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "23365",
"name": "Bontrager Elite Shift Cable & Housing Set",
"price": "319.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "24736",
"name": "Bontrager Elite Brake Cable & Housing Set",
"price": "319.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "23366",
"name": "Bontrager Comp Shift Cable & Housing Set",
"price": "259.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "24737",
"name": "Bontrager Comp Brake Cable & Housing Set",
"price": "259.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "23277",
"name": "Bontrager Pro Shift Cable & Housing Set",
"price": "419.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "24735",
"name": "Bontrager Pro Brake Cable & Housing Set",
"price": "419.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "24734",
"name": "Bontrager XXX Brake Cable & Housing Set",
"price": "749.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "23364",
"name": "Bontrager XXX Shift Cable & Housing Set",
"price": "749.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "23363",
"name": "Bontrager Shift Cable & Housing Set",
"price": "45.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "24733",
"name": "Bontrager Brake Cable & Housing Set",
"price": "45.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}