if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "34588",
"name": "Trek Velocis Mips Road Bike Helmet",
"price": "5500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37123",
"name": "Trek Ballista Mips Road Bike Helmet",
"price": "5500.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "21848",
"name": "Bontrager Quantum Mips Bike Helmet",
"price": "2800.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "21849",
"name": "Bontrager Quantum Mips Bike Helmet",
"price": "2800.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "bluedark_yellow",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "14896",
"name": "Bontrager Velocis Mips Road Helmet",
"price": "3800.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "14897",
"name": "Bontrager Velocis Mips Road Bike Helmet",
"price": "2800.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}