Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "13495",
"name": "Tensor de banda Trek TAB",
"price": "1763.0",
"brand": "Trek",
"category": "Bike chains",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "31962",
"name": "Gates Drive Belt",
"price": "2436.0",
"brand": "Gates",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "11008",
"name": "Gates Center Track Belts",
"price": "1763.0",
"brand": "Gates",
"category": "Bike chains",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}