Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "36962",
"name": "Dual Sport 3 Equipped Stagger Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "More Options",
"position": 1
}
,
{
"id": "35109",
"name": "Dual Sport 3 Equipped Gen 4",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "36826",
"name": "Dual Sport 3 Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "35104",
"name": "Dual Sport 3 Gen 4",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "More Options",
"position": 4
}
,
{
"id": "36996",
"name": "Dual Sport 2 Equipped Stagger",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "More Options",
"position": 5
}
,
{
"id": "36995",
"name": "Dual Sport 2 Equipped Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "More Options",
"position": 6
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "More Options",
"position": 7
}
,
{
"id": "40511",
"name": "Dual Sport 2 Midstep Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "More Options",
"position": 8
}
,
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "orange",
"list": "More Options",
"position": 9
}
,
{
"id": "40508",
"name": "Dual Sport 2 Equipped Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "More Options",
"position": 10
}
,
{
"id": "40824",
"name": "Dual Sport 2 Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "More Options",
"position": 11
}
,
{
"id": "40823",
"name": "Dual Sport 1 Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "More Options",
"position": 12
}
,
{
"id": "40503",
"name": "Dual Sport 3 Equipped Stagger Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "More Options",
"position": 13
}
,
{
"id": "40502",
"name": "Dual Sport 3 Equipped Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "grey",
"list": "More Options",
"position": 14
}
,
{
"id": "35060",
"name": "Dual Sport 1 Gen 4",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "greydark",
"list": "More Options",
"position": 15
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "More Options",
"position": 16
}
]
}
});
} else {
console.log("dataLayer");
}