Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "46146",
"name": "Top Fuel 9.9 XX AXS Gen 4",
"price": "259999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "More Options",
"position": 1
}
,
{
"id": "46145",
"name": "Top Fuel 9.9 X0 AXS Gen 4",
"price": "219999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "More Options",
"position": 2
}
,
{
"id": "46161",
"name": "Top Fuel 9.8 XT Gen 4",
"price": "144999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purpledark",
"list": "More Options",
"position": 3
}
,
{
"id": "46143",
"name": "Top Fuel 8 Gen 4",
"price": "81999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "46142",
"name": "Top Fuel 5 Gen 4",
"price": "65999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "41651",
"name": "Top Fuel 9.9 XX AXS T-Type Gen 3",
"price": "268999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 6
}
,
{
"id": "37070",
"name": "Top Fuel 9.9 XX1 AXS Gen 3",
"price": "265999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 7
}
,
{
"id": "37064",
"name": "Top Fuel 9.9 XTR Gen 3",
"price": "202999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 8
}
,
{
"id": "36790",
"name": "Top Fuel 9.8 XT Gen 3",
"price": "182999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "yellow",
"list": "More Options",
"position": 9
}
,
{
"id": "42273",
"name": "Cuadro Top Fuel C Gen 3",
"price": "91999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "green",
"list": "More Options",
"position": 10
}
,
{
"id": "35178",
"name": "Top Fuel 9.7 Gen 3",
"price": "68499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 11
}
,
{
"id": "36789",
"name": "Top Fuel 8 XT Gen 3",
"price": "58999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "orange",
"list": "More Options",
"position": 12
}
,
{
"id": "35070",
"name": "Top Fuel 7 Gen 3",
"price": "49499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 13
}
,
{
"id": "41378",
"name": "Top Fuel 5 Gen 3",
"price": "47999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "More Options",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}