if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "PLN",
"impressions": [
{
"id": "40499",
"name": "Verve 2 Equipped Lowstep",
"price": "3999.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40498",
"name": "Verve 2 Equipped",
"price": "3999.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}