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": "26197",
"name": "Trek Foam Housing Sleeve",
"price": "85.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "36853",
"name": "Trek 2022 Supercaliber 29 AXS Chainstay Plug",
"price": "40.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "34771",
"name": "Trek Boone Internal Housing Grommet",
"price": "30.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}