Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "32443",
"name": "Řídítka Electra Attitude Cruiser",
"price": "900.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "36170",
"name": "Electra Vale Sandblasted Handlebar",
"price": "800.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "36737",
"name": "Electra Townie Sandblasted Handlebar",
"price": "800.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "31774",
"name": "Electra Townie Original Handlebar",
"price": "750.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "13992",
"name": "Electra Bullhorn Cruiser Handlebar",
"price": "599.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "grey",
"list": "More Options",
"position": 5
}
,
{
"id": "32444",
"name": "Řídítka Electra Café Cruiser",
"price": "580.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "12765",
"name": "Electra Amsterdam Handlebar",
"price": "580.0",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}