if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "22599.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40824",
"name": "Dual Sport 2 Gen 5",
"price": "17499.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40823",
"name": "Dual Sport 1 Gen 5",
"price": "15999.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "12399.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "10899.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}