if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "35809",
"name": "Bontrager Line Comp Flat Pedal Set",
"price": "23.99",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "greenvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33594",
"name": "Bontrager Town Double Pannier",
"price": "55.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41812",
"name": "Trek BellBeats Digital Bike Bell and Speaker",
"price": "99.99",
"brand": "Trek",
"category": "Bike bells & horns",
"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": "36733",
"name": "Hyena Range Extender Battery",
"price": "459.99",
"brand": "Hyena",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "25255",
"name": "Bontrager Standard Schrader Valve Bicycle Tube",
"price": "3.99",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "40635",
"name": "Trek Range Boost Mounting Kit",
"price": "399.99",
"brand": "Trek",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}