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