if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CZK",
"impressions": [
{
"id": "35920",
"name": "Rámový set 1120",
"price": "32990.0",
"brand": "Trek",
"category": "1120",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30187",
"name": "Rámový set Stache C",
"price": "44490.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark_greenvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "26914",
"name": "Rámový set 1120",
"price": "25990.0",
"brand": "Trek",
"category": "1120",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}