Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "37055",
"name": "Wahoo 26",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 1
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "More Options",
"position": 2
}
,
{
"id": "40929",
"name": "Wahoo 26 Path",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 3
}
,
{
"id": "37052",
"name": "Wahoo 20",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37054",
"name": "Wahoo 24",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "41014",
"name": "Wahoo 20 Trail",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greenvisibility",
"list": "More Options",
"position": 6
}
,
{
"id": "24065",
"name": "Wahoo 24",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black_greenvisibility",
"list": "More Options",
"position": 7
}
,
{
"id": "24066",
"name": "Wahoo 26",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "purple",
"list": "More Options",
"position": 8
}
,
{
"id": "40928",
"name": "Wahoo 24 Path",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}