Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "48622",
"name": "Powerfly+ 8 Gen 5",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_bronze",
"list": "More Options",
"position": 1
}
,
{
"id": "48620",
"name": "Powerfly+ 4 Equipped Gen 5",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 2
}
,
{
"id": "48621",
"name": "Powerfly+ 6 Gen 5",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_black",
"list": "More Options",
"position": 3
}
,
{
"id": "48619",
"name": "Powerfly+ 4 Gen 5",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_greenvisibility",
"list": "More Options",
"position": 4
}
,
{
"id": "37044",
"name": "Powerfly 5 Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "More Options",
"position": 5
}
,
{
"id": "41036",
"name": "Powerfly 4 625W Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greenlight_greydark",
"list": "More Options",
"position": 6
}
,
{
"id": "37045",
"name": "Powerfly 7 Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "tan_black",
"list": "More Options",
"position": 7
}
,
{
"id": "32817",
"name": "Powerfly 4 Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluelight_bluedark",
"list": "More Options",
"position": 8
}
,
{
"id": "37043",
"name": "Powerfly 4 Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue_black",
"list": "More Options",
"position": 9
}
,
{
"id": "32830",
"name": "Powerfly 4 625 Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluelight_bluedark",
"list": "More Options",
"position": 10
}
,
{
"id": "35402",
"name": "Powerfly 5 Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_greydark",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}