Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "41293",
"name": "Trek Domane SL 5 Downtube Storage Door",
"price": "1100.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "42115",
"name": "Trek 2023 Emonda SLR Headset Cover",
"price": "300.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "reddark",
"list": "More Options",
"position": 2
}
,
{
"id": "37398",
"name": "Trek 2022-2023 Rail 29 Carbon Paint Match Charge Port Cover",
"price": "260.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "45528",
"name": "Trek-Diamant 2022-2023 Bosch Smart System Charge Port Cover",
"price": "145.0",
"brand": "Trek",
"category": "E-bike motor parts",
"variant": "black_greydark",
"list": "More Options",
"position": 4
}
,
{
"id": "38243",
"name": "Trek 2022 Speed Concept Handlebar Storage Cover Bolt",
"price": "69.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}