if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "35649",
"name": "Quadro de Alumínio Top Fuel e Suspensão Traseira Gen 3",
"price": "11959.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35648",
"name": "Quadro de Carbono Top Fuel e Suspensão Traseira Gen 3",
"price": "15629.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}