if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "MXN",
"impressions": [
{
"id": "32920",
"name": "Unior Hex Wrench",
"price": "78.0",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36495",
"name": "Unior 1/4" Drive Socket",
"price": "71.0",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37633",
"name": "Unior Truing Stand Caliper Tip",
"price": "56.0",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37630",
"name": "Unior Steerer Tube Cutting Guide Bolt",
"price": "26.0",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37638",
"name": "Unior Pro Chain Tool Ball",
"price": "3.0",
"brand": "Unior",
"category": "Bike tools & maintenance",
"variant": "greylight",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}