if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "47071",
"name": "Checkpoint SL 5 AXS 3ª Geração",
"price": "29750.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red_greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35169",
"name": "Checkpoint SL 5",
"price": "24999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red_bluedark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}