Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "36829",
"name": "Trek 2022 Top Fuel 29 Bottom Bracket Cable Guide",
"price": "130.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "34663",
"name": "Fazua Evation Bottom Bracket",
"price": "9975.0",
"brand": "Fazua",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}