Oversikt
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "12669",
"name": "Electra Deluxe Block Pedal Set",
"price": "134.1",
"brand": "Electra",
"category": "Bike pedals",
"variant": "grey_black",
"list": "More Options",
"position": 1
}
,
{
"id": "29377",
"name": "Electra Grip Tape Pedal Set",
"price": "127.0",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}