if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "37596",
"name": "Electra 16" Kids' Handlebar",
"price": "27.49",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37595",
"name": "Electra 20" Kids' Handlebar",
"price": "22.49",
"brand": "Electra",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35980",
"name": "Lee Chi 25.4 Kids' Handlebar",
"price": "11.99",
"brand": "Lee Chi",
"category": "Bike handlebars",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}