if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "27290",
"name": "Bontrager TLR Tyre Sealant",
"price": "32.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12968",
"name": "Bontrager TLR Sealant Injector",
"price": "14.99",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}