Přehled
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "41738",
"name": "Cyklistická kukla Trek Windshell",
"price": "649.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41739",
"name": "Cyklistický termonákrčník Trek",
"price": "519.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41737",
"name": "Cyklistická kšiltovka Trek Windshell",
"price": "519.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "41736",
"name": "Cyklistická čepice pod přilbu Trek Windshell",
"price": "479.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "46737",
"name": "Replika cyklistické kšiltovky Santini týmu Lidl-Trek",
"price": "399.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 5
}
,
{
"id": "41735",
"name": "Cyklistická termočelenka Trek",
"price": "399.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}