Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "47281",
"name": "Slash 9.9 XX AXS Tipo T Gen 6",
"price": "266999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "47280",
"name": "Slash 9.9 X0 AXS Tipo T Gen 6",
"price": "239999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "47279",
"name": "Slash 9.8 XT Gen 6",
"price": "172999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 3
}
,
{
"id": "41689",
"name": "Slash 9.9 XX AXS Tipo T Gen 6",
"price": "266999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "41681",
"name": "Slash 9.9 X0 AXS Tipo T Gen 6",
"price": "239999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 5
}
,
{
"id": "41821",
"name": "Slash 9.9 XTR Gen 6",
"price": "211999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 6
}
,
{
"id": "41814",
"name": "Slash 9.8 XT Gen 6",
"price": "172999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 7
}
,
{
"id": "37060",
"name": "Slash 9.9 XX1 Flight Attendant Gen 5",
"price": "322999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 8
}
,
{
"id": "37065",
"name": "Slash 9.9 XTR Gen 5",
"price": "222999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 9
}
,
{
"id": "37058",
"name": "Slash 9.8 GX AXS Gen 5",
"price": "202999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 10
}
,
{
"id": "36732",
"name": "Slash 9.8 XT Gen 5",
"price": "85499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}