Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "48620",
"name": "Powerfly+ 4 Equipped Gen 5",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 1
}
,
{
"id": "48616",
"name": "Powerfly FS+ 4 Equipped Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange_greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "41661",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_red",
"list": "More Options",
"position": 3
}
,
{
"id": "40672",
"name": "Powerfly FS 4 Equipped Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal_greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "41704",
"name": "Powerfly Sport 5 Equipped Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "white_greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "32755",
"name": "Powerfly FS 4 Equipped Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "More Options",
"position": 6
}
,
{
"id": "37008",
"name": "Powerfly FS 9 Equipped Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "More Options",
"position": 7
}
,
{
"id": "35271",
"name": "Powerfly FS 9 Equipped Gen 2",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "white_blue",
"list": "More Options",
"position": 8
}
,
{
"id": "37047",
"name": "Powerfly Sport 4 Equipped Gen 4",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_red",
"list": "More Options",
"position": 9
}
,
{
"id": "37007",
"name": "Powerfly FS 4 Equipped Gen 3",
"price": "",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}