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