if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "31565",
"name": "Bontrager Rally WaveCel Mountain Bike Helmet",
"price": "89.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "bluelight_bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21849",
"name": "Bontrager Quantum Mips Bike Helmet",
"price": "79.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "30467",
"name": "Bontrager Solstice Mips Bike Helmet",
"price": "29.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "30482",
"name": "Bontrager Solstice Bike Helmet",
"price": "25.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45109",
"name": "Trek Blaze WaveCel Mountain Bike Helmet",
"price": "199.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "grey_bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "45106",
"name": "Trek Rally WaveCel Mountain Bike Helmet",
"price": "149.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "tan_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "45104",
"name": "Trek Quantum WaveCel Mountain Bike Helmet",
"price": "109.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white_gold",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36025",
"name": "Trek Solstice Mips Bike Helmet",
"price": "54.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36028",
"name": "Trek Solstice Bike Helmet",
"price": "36.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}