if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "14602",
"name": "Bontrager ANT+/BLE Softstrap Heart Rate Belt",
"price": "39.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "49294",
"name": "Wahoo TRACKR Heart Rate Monitor",
"price": "79.99",
"brand": "Wahoo",
"category": "Bike computers & GPS",
"variant": "black_white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21492",
"name": "Bontrager Softstrap Heart Rate Belt",
"price": "22.49",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}