Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "35061",
"name": "Cinta para rin Bontrager TLR",
"price": "949.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14221",
"name": "Corbata Bontrager TLR",
"price": "339.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "31421",
"name": "Bontrager Race X Lite Rim Brake TLR Rim Strip",
"price": "219.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "11669",
"name": "Corbata ancha de alta presión Bontrager",
"price": "110.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "40481",
"name": "Trek-Diamant Presta Rim Strip",
"price": "170.0",
"brand": "Trek-Diamant",
"category": "Bike rims & accessories",
"variant": "red",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}