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