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": "44647",
"name": "Trek 2023 Aluminum Rail Chainstay Armor",
"price": "180.0",
"brand": "Trek",
"category": "Bike frame protection",
"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");
}