Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "36969",
"name": "Marlin 8 3ª Geração",
"price": "7500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "36967",
"name": "Marlin 7 3ª Geração",
"price": "5500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "tealdark_bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "40773",
"name": "Marlin 5 3ª Geração",
"price": "5750.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "More Options",
"position": 3
}
,
{
"id": "41613",
"name": "Marlin 4 2ª geração",
"price": "4300.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "40962",
"name": "Marlin 6 3ª Geração",
"price": "7150.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}