if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "25341",
"name": "Bontrager Foray Mountain Bike Shoe",
"price": "149.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25342",
"name": "Bontrager Foray Women's Mountain Bike Shoe",
"price": "59.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "purple",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21728",
"name": "Bontrager Evoke Mountain Bike Shoe",
"price": "29.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}