if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "22162",
"name": "Bontrager Evoke Mountain Bike Hoodie",
"price": "79.99",
"brand": "Bontrager",
"category": "Casual sweatshirts & hoodies",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40610",
"name": "Electra Ride Free Sweatshirt",
"price": "49.99",
"brand": "Electra",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5 Panel Hat",
"price": "28.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "45020",
"name": "100% Trek Factory Racing Trucker Hat",
"price": "24.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45023",
"name": "100% Trek Factory Racing Cuff Beanie",
"price": "22.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing Pom Beanie",
"price": "22.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}