if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "36846",
"name": "Precaliber 24 de 8 velocidades y suspensión",
"price": "9399.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36965",
"name": "Precaliber 24 8 velocidades",
"price": "8899.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}