Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"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": 1
}
,
{
"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": 2
}
,
{
"id": "32906",
"name": "Trek Powerfly HT Motor Armor",
"price": "125.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black_greydark",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}