if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "36952",
"name": "Trek Starvos WaveCel Cycling Helmet",
"price": "2400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "31568",
"name": "Bontrager Starvos WaveCel Cycling Helmet",
"price": "1200.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "30489",
"name": "Bontrager Little Dipper Children's Bike Helmet",
"price": "750.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "31205",
"name": "Bontrager Tyro Youth Bike Helmet",
"price": "650.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "orangevisibility_yellowvisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "30486",
"name": "Bontrager Tyro Children's Bike Helmet",
"price": "650.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "orangevisibility_yellowvisibility",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}