Visão geral
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "BRL",
"impressions": [
{
"id": "27395",
"name": "Haste da válvula Bontrager TLR de base redonda",
"price": "150.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "13521",
"name": "Haste da válvula Bontrager TLR de base retangular",
"price": "150.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}