Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "25835",
"name": "Titanový šroub pro kombinaci řídítka/představec Trek",
"price": "250.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "grey",
"list": "More Options",
"position": 1
}
,
{
"id": "47384",
"name": "Trek Aero RSL Barstem Pro Blendr Mount",
"price": "799.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black_greydark",
"list": "More Options",
"position": 2
}
,
{
"id": "14579",
"name": "Úchyt s rychloupínákem ke košíkům a úchyt Electra",
"price": "699.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black_greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "41067",
"name": "Hyena Bluetooth HMI Clamp",
"price": "360.0",
"brand": "Hyena",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}