Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "37480",
"name": "Trek 2022 Rail 29 Motor Armor",
"price": "660.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "44932",
"name": "e*Thirteen e*Spec Chainguide for 55mm Chainline for Bosch",
"price": "240.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41263",
"name": "Trek 2021-2023 Powerfly FS & 2020-2021 Aluminum Rail Motor Armor",
"price": "210.0",
"brand": "Trek",
"category": "E-bike accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}