if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "44404",
"name": "Wahoo KICKR Smart Trainer",
"price": "849.99",
"brand": "Wahoo",
"category": "Bike trainers & rollers",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "49387",
"name": "Garmin Edge 1050 GPS Computer",
"price": "699.99",
"brand": "Garmin",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "23497",
"name": "Delta X Mount Stem Pro Phone Holder",
"price": "36.99",
"brand": "Delta",
"category": "Phone & tablet accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}