Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "36235",
"name": "Electra Townie Go! 7D & Cruiser Go! Light Kit",
"price": "899.0",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "25656",
"name": "Electra Nr.9 XE baklykt for elsykkel",
"price": "179.0",
"brand": "Electra",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 2
}
,
{
"id": "31092",
"name": "Spanninga Presto EX Guard baklykt for elsykkel",
"price": "129.0",
"brand": "Electra",
"category": "Bike lights",
"variant": "black_red",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}