Yleistä
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "33838",
"name": "Electra Tie Dye Socks",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "purple",
"list": "More Options",
"position": 1
}
,
{
"id": "33835",
"name": "Electra Surfbird Socks",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "blue_greenvisibility",
"list": "More Options",
"position": 2
}
,
{
"id": "33836",
"name": "Electra Burger Socks",
"price": "15.29",
"brand": "Electra",
"category": "Cycling socks",
"variant": "tan_red",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}