if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "14202",
"name": "Bar Mitts Mountain Extreme",
"price": "125.0",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33450",
"name": "Bar Mitts Extreme Road Internally Routed",
"price": "125.0",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "28066",
"name": "Bar Mitts Dual Position Road",
"price": "74.95",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "13349",
"name": "Bar Mitts Mountain",
"price": "74.95",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "14203",
"name": "Bar Mitts Road",
"price": "74.95",
"brand": "Bar Mitts",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}