Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "41856",
"name": "Trek 2023 Emonda SLR Fork",
"price": "4500.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "41360",
"name": "Trek 2023 Madone SL6 Forks",
"price": "4000.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37984",
"name": "Trek Speed Concept SLR Gen 3 700c Rigid Fork",
"price": "3850.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "black_grey",
"list": "More Options",
"position": 3
}
,
{
"id": "36121",
"name": "Trek 2022 Checkpoint SL Forks",
"price": "3100.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "red_bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "41847",
"name": "Trek 2023 Emonda SL6 700c Rigid Fork",
"price": "2680.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}