if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "46220",
"name": "Madone SL 7 8ª Geração",
"price": "54999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "46221",
"name": "Madone SL 6 AXS 8ª Geração",
"price": "49999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "46218",
"name": "Madone SL 5 8ª Geração",
"price": "28499.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "46219",
"name": "Madone SL 6 8ª Geração",
"price": "44999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}