if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "25874",
"name": "Trek Kids Seatpost Clamp",
"price": "3.99",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33731",
"name": "Electra Honeycomb Small Strap-Mounted Handlebar Basket",
"price": "23.99",
"brand": "Electra",
"category": "Bike baskets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32536",
"name": "Trek Kids' Center Mount 247mm Kickstand",
"price": "14.99",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33701",
"name": "Electra Honeycomb Small Hook-Mounted Handlebar Basket",
"price": "14.99",
"brand": "Electra",
"category": "Bike baskets",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41994",
"name": "Trek Kids' Center Mount 235mm Kickstand",
"price": "14.99",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}