if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "44426",
"name": "Trek Line Comp Flat Pedal Set",
"price": "600.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30971",
"name": "Trek Kids' Platform Large Pedal Set",
"price": "200.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36035",
"name": "Trek Solstice Mips Youth Bike Helmet",
"price": "1400.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "42200",
"name": "Trek Tyro Child Bike Helmet",
"price": "950.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32748",
"name": "Trek Solstice Youth Cycling Shorts",
"price": "1200.0",
"brand": "Trek",
"category": "Kids' bike accessories",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37110",
"name": "Trek Evoke Youth Unisex Mountain Bike Glove",
"price": "550.0",
"brand": "Trek",
"category": "Kids' bike gloves",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "22489",
"name": "Bontrager Kids' Bike Glove",
"price": "320.0",
"brand": "Bontrager",
"category": "Fingerless cycling gloves",
"variant": "black_grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "30976",
"name": "Trek Kids' Twist Shift Grips",
"price": "100.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "30975",
"name": "Trek Kids' Single Speed Grips",
"price": "100.0",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}