if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "36532",
"name": "Calcetines de ciclismo Trek Race Reflective Crew",
"price": "609.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36534",
"name": "Calcetines de ciclismo Trek Race Crew",
"price": "589.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36533",
"name": "Calcetines de ciclismo Trek Race Quarter",
"price": "349.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37586",
"name": "Calcetín de ciclismo del equipo Santini Trek-Segafredo para hombres",
"price": "429.0",
"brand": "Santini",
"category": "Cycling socks",
"variant": "white_red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35320",
"name": "Calcetines de ciclismo Bontrager Race Quarter",
"price": "115.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}