Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "41651",
"name": "Top Fuel 9.9 XX AXS T-Type",
"price": "269999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 1
}
,
{
"id": "36789",
"name": "Top Fuel 8 XT",
"price": "76499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "41378",
"name": "Top Fuel 5",
"price": "57499.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "37070",
"name": "Top Fuel 9.9 XX1 AXS",
"price": "265999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 4
}
,
{
"id": "37062",
"name": "Top Fuel 9.8 GX AXS",
"price": "192999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 5
}
,
{
"id": "35222",
"name": "Top Fuel 9.8 XT",
"price": "129999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "36790",
"name": "Top Fuel 9.8 XT",
"price": "129999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "yellow",
"list": "More Options",
"position": 7
}
,
{
"id": "35070",
"name": "Top Fuel 7",
"price": "73999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 8
}
,
{
"id": "35178",
"name": "Top Fuel 9.7",
"price": "65019.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 9
}
,
{
"id": "35071",
"name": "Top Fuel 5",
"price": "59999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}