if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "47530",
"name": "Checkpoint ALR 3",
"price": "13000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35172",
"name": "Checkpoint ALR 5",
"price": "14999.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "bluedark_red",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}