Overblik
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "DKK",
"impressions": [
{
"id": "29377",
"name": "Electra Grip Tape-pedalsæt",
"price": "119.0",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "12666",
"name": "Electra Barefoot-pedalsæt",
"price": "98.0",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}