if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "35003",
"name": "FX 2 Disc 3ª Geração",
"price": "4000.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35021",
"name": "FX 3 Disc 3ª Geração",
"price": "5000.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35001",
"name": "FX 1 Disc 3ª Geração",
"price": "2800.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}