Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "41416",
"name": "Trek EcoTack Handlebar Tape",
"price": "285.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22698",
"name": "Fita para guidão de cortiça com Gel duplo Bontrager",
"price": "180.0",
"brand": "Bontrager",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "48089",
"name": "Fita de Cortiça para Guidão com Gel Duplo Trek",
"price": "190.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "47893",
"name": "Conjunto de fita de guidão de gel e cortiça Trek",
"price": "190.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "white",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}