Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "35420",
"name": "Electra Townie 7D EQ 26" Wheel",
"price": "3915.0",
"brand": "Electra",
"category": "Bike wheels",
"variant": "pink",
"list": "More Options",
"position": 1
}
,
{
"id": "34880",
"name": "Electra 2021 Townie Go! 5i 26" Wheels",
"price": "3132.0",
"brand": "Electra",
"category": "Bike wheels",
"variant": "greenlight_greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "32967",
"name": "Trek Alex DP23/TX505 700c Wheel",
"price": "2453.0",
"brand": "Trek-Diamant",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "35153",
"name": "Electra 2021 Townie 7D 26" Wheels",
"price": "1566.0",
"brand": "Electra",
"category": "Bike wheels",
"variant": "pink",
"list": "More Options",
"position": 4
}
,
{
"id": "35154",
"name": "Electra 2021 Townie 7D 24" Wheels",
"price": "1566.0",
"brand": "Electra",
"category": "Bike wheels",
"variant": "pink",
"list": "More Options",
"position": 5
}
,
{
"id": "06486",
"name": "Sta-Tru 26" QR Single-wall Alloy Cruiser Wheel",
"price": "1262.0",
"brand": "Sta-Tru",
"category": "Bike wheels",
"variant": "greylight",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}