Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "36790",
"name": "Top Fuel 9.8 XT",
"price": "36539.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "35222",
"name": "Top Fuel 9.8 XT",
"price": "33319.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "yellow_red",
"list": "More Options",
"position": 2
}
,
{
"id": "36789",
"name": "Top Fuel 8",
"price": "22019.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 3
}
,
{
"id": "35178",
"name": "Top Fuel 9.7",
"price": "20739.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 4
}
,
{
"id": "35072",
"name": "Top Fuel 8",
"price": "18639.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "35070",
"name": "Top Fuel 7",
"price": "16839.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "green",
"list": "More Options",
"position": 6
}
,
{
"id": "35071",
"name": "Top Fuel 5",
"price": "12849.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 7
}
,
{
"id": "35649",
"name": "Quadro de Alumínio Top Fuel e Suspensão Traseira",
"price": "11959.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}