Visión general
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "36953",
"name": "Fuel EX 9.8 GX AXS Gen 6",
"price": "114599.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_grey",
"list": "More Options",
"position": 1
}
,
{
"id": "36355",
"name": "Fuel EX 9.7 Gen 6",
"price": "72199.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "41346",
"name": "Fuel EX 5 Gen 6",
"price": "63599.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "47249",
"name": "Fuel EX 9.9 XX AXS T-Type Gen 6",
"price": "267999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "47248",
"name": "Fuel EX 9.9 X0 AXS T-Type Gen 6",
"price": "236999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "41573",
"name": "Fuel EX 9.8 XT Gen 6",
"price": "172999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 6
}
,
{
"id": "41645",
"name": "Fuel EX 9.9 XX AXS T-Type Gen 6",
"price": "267999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}