if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37123",
"name": "Casco Ballista para Bici de Carrera con Mips de Trek",
"price": "399.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34588",
"name": "Casco Velocis para Bici de Carrera de Trek con Protección Mips",
"price": "299.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21764",
"name": "Casco de Ciclismo Bontrager Circuit Mips",
"price": "212.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "14897",
"name": "Casco para Bici de Carrera Bontrager Velocis Mips",
"price": "279.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}