if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "37420",
"name": "Madone SLR 9 AXS 7ª Geração",
"price": "113999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37419",
"name": "Madone SLR 9 7ª Geração",
"price": "107999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37418",
"name": "Madone SLR 7 AXS 7ª Geração",
"price": "81999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37025",
"name": "Madone SLR 7 7ª Geração",
"price": "75999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37417",
"name": "Madone SLR 6 AXS 7ª Geração",
"price": "70499.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}