Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "36235",
"name": "Electra Townie Go! 7D & Cruiser Go! Light Kit",
"price": "2300.0",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "12861",
"name": "Přední světlo Electra Amsterdam Royal 8i",
"price": "900.0",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "25645",
"name": "Přední světlo Electra Swingo XE na elektrokolo",
"price": "580.0",
"brand": "Electra",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}