Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "37018",
"name": "Farley 5",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "tealdark_greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "37023",
"name": "Farley 9",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "37019",
"name": "Farley 7",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "yellow",
"list": "More Options",
"position": 3
}
,
{
"id": "37020",
"name": "Farley 9.6",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "33745",
"name": "Cuadro Farley C",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark",
"list": "More Options",
"position": 5
}
,
{
"id": "40735",
"name": "Cuadro Farley AL",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "More Options",
"position": 6
}
,
{
"id": "33270",
"name": "Farley 5",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "bluedark_tealdark",
"list": "More Options",
"position": 7
}
,
{
"id": "35152",
"name": "Farley 7",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "greendark_black",
"list": "More Options",
"position": 8
}
,
{
"id": "24999",
"name": "Cuadro Farley EX",
"price": "",
"brand": "Trek",
"category": "Fat bikes",
"variant": "grey",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}