Yleistä
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "29377",
"name": "Electra Grip Tape Pedal Set",
"price": "13.99",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "12666",
"name": "Electra Barefoot Pedal Set",
"price": "12.59",
"brand": "Electra",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}