if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "41527",
"name": "Rail 8 GX AXS T-Type Gen 3",
"price": "27999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36991",
"name": "Rail 7 Gen 3",
"price": "24999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36990",
"name": "Rail 5 625 W Gen 3",
"price": "22899.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37027",
"name": "Rail 9.8 XT generacji 4",
"price": "40699.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37015",
"name": "Rail 9.7 Gen 4",
"price": "28199.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41679",
"name": "Rail 9.5 Gen 4",
"price": "25099.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35033",
"name": "Rail 5 625 W Gen 2",
"price": "22751.1",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35035",
"name": "Rail 7 Gen 2",
"price": "22484.25",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35038",
"name": "Rail 9.7 Gen 2",
"price": "28109.25",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}