Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "41180",
"name": "Trek Speed Concept Stem Faceplate Bolt",
"price": "100.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "42018",
"name": "Base para avanço e suporte para ciclocomputador Blendr Duo para Speed Concept Bontrager",
"price": "1115.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "42017",
"name": "Base para avanço e suporte para ciclocomputador Blendr Mono para Speed Concept Bontrager",
"price": "965.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}