if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "33172",
"name": "Bontrager MIK Commuter Boot Bag",
"price": "94.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33173",
"name": "Bontrager Commuter Single Pannier",
"price": "84.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33594",
"name": "Bontrager Town Double Pannier",
"price": "55.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47140",
"name": "Trek Elite Recycled Water Bottle Cage",
"price": "9.99",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "gold",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35952",
"name": "Electra Pinger Bike Bell",
"price": "17.99",
"brand": "Electra",
"category": "Bike bells & horns",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40635",
"name": "Trek Range Boost Mounting Kit",
"price": "379.99",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}