Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "45034",
"name": "Trek Voda Ice 28oz Water Bottle",
"price": "200.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "37366",
"name": "Trek Voda Ice 20oz Water Bottle",
"price": "170.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "red",
"list": "More Options",
"position": 2
}
,
{
"id": "46175",
"name": "Caramanhola e Suporte Trek RSL Aero",
"price": "865.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_grey",
"list": "More Options",
"position": 3
}
,
{
"id": "46167",
"name": "Caramanhola Trek RSL Aero",
"price": "210.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "bluedark_red",
"list": "More Options",
"position": 4
}
,
{
"id": "41559",
"name": "Trek Speed Concept SLR BTA 26oz Water Bottle Kit",
"price": "1785.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}