Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "35756",
"name": "Speed Concept SLR 9 AXS",
"price": "326999.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "More Options",
"position": 1
}
,
{
"id": "35757",
"name": "Speed Concept SLR 9",
"price": "279999.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "More Options",
"position": 2
}
,
{
"id": "35754",
"name": "Speed Concept SLR 6 AXS",
"price": "244999.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "More Options",
"position": 3
}
,
{
"id": "35755",
"name": "Speed Concept SLR 7 AXS",
"price": "261999.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}