Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "36969",
"name": "Marlin 8 Gen 3",
"price": "24499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "17599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "More Options",
"position": 2
}
,
{
"id": "33148",
"name": "Marlin 7 Gen 2",
"price": "16599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "More Options",
"position": 3
}
,
{
"id": "36966",
"name": "Marlin 6 Gen 3",
"price": "16999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}