if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "37096",
"name": "Trek Velocis Dual Foam Unisex Cycling Glove",
"price": "54.99",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37097",
"name": "Trek Circuit Twin Gel Unisex Cycling Glove",
"price": "43.99",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37099",
"name": "Trek Solstice Gel Unisex Cycling Glove",
"price": "32.99",
"brand": "Trek",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34505",
"name": "Bontrager Circuit Twin Gel Cycling Glove",
"price": "14.93",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "34508",
"name": "Bontrager Solstice Flat Bar Gel Cycling Glove",
"price": "9.93",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34507",
"name": "Bontrager Solstice Gel Cycling Glove",
"price": "9.93",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}