Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "35765",
"name": "E-Caliber 9.8 GX AXS Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 1
}
,
{
"id": "34672",
"name": "E-Caliber 9.8 GX Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 2
}
,
{
"id": "34670",
"name": "E-Caliber 9.8 XT Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 3
}
,
{
"id": "35768",
"name": "E-Caliber 9.8 XT Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 4
}
,
{
"id": "35771",
"name": "E-Caliber 9.9 XTR Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 5
}
,
{
"id": "34708",
"name": "E-Caliber 9.9 XTR Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 6
}
,
{
"id": "35767",
"name": "E-Caliber 9.8 GX Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 7
}
,
{
"id": "34710",
"name": "E-Caliber 9.9 XX1 AXS Gen 1",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 8
}
,
{
"id": "35773",
"name": "E-Caliber 9.9 XX1 AXS Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_red",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}