if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "37109",
"name": "Trek Kids’ Unisex Bike Glove",
"price": "16.99",
"brand": "Trek",
"category": "Kids' bike gloves",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37110",
"name": "Trek Evoke Youth Unisex Mountain Bike Glove",
"price": "15.99",
"brand": "Trek",
"category": "Kids' bike gloves",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}