Prehľad
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "44958",
"name": "Postranná brašňa Trek",
"price": "59.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33173",
"name": "Postranní brašna Bontrager Commuter",
"price": "89.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33594",
"name": "Postranní dvojbrašna Bontrager Town",
"price": "79.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "40323",
"name": "Electra Heather Charcoal Pannier Bag",
"price": "95.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "black_grey",
"list": "More Options",
"position": 4
}
,
{
"id": "44316",
"name": "Trek Fetch+ 2 Rear Pannier Mounting Kit",
"price": "11.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}