Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "40927",
"name": "Wahoo 20 Path",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 1
}
,
{
"id": "40929",
"name": "Wahoo 26 Path",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 2
}
,
{
"id": "37052",
"name": "Wahoo 20",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "37054",
"name": "Wahoo 24",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "41013",
"name": "Wahoo 24 Trail",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "green",
"list": "More Options",
"position": 5
}
,
{
"id": "24065",
"name": "Wahoo 24",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red_black",
"list": "More Options",
"position": 6
}
,
{
"id": "24066",
"name": "Wahoo 26",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "purple",
"list": "More Options",
"position": 7
}
,
{
"id": "37055",
"name": "Wahoo 26",
"price": "",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"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");
}