if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "44529",
"name": "Fox Racing Union Mountain Bike Shoe",
"price": "152.99",
"brand": "Fox Racing",
"category": "Mountain bike shoes",
"variant": "tan",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44528",
"name": "Fox Racing Union Flat Mountain Bike Shoe",
"price": "127.99",
"brand": "Fox Racing",
"category": "Mountain bike shoes",
"variant": "tan",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}