Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "44958",
"name": "Postranní brašna Trek",
"price": "1499.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33173",
"name": "Postranní brašna Bontrager Commuter",
"price": "2199.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "33594",
"name": "Postranní dvojbrašna Bontrager Town",
"price": "1999.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44316",
"name": "Trek Fetch+ 2 Rear Pannier Mounting Kit",
"price": "310.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "44317",
"name": "Trek Fetch+ 2 Front Pannier Mounting Kit",
"price": "200.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}