if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "28852",
"name": "Trek/Bontrager WaveCel Bike Helmet Blendr Mount",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "23170",
"name": "Bontrager Blendr Circuit Mips Bike Helmet Mount",
"price": "200.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37953",
"name": "Bontrager Circuit WaveCel Blendr Bike Helmet Mount",
"price": "200.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "13291",
"name": "Bontrager Blendr Lithos Mips Bike Helmet Mount",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "23171",
"name": "Bontrager Blendr Rally Mips Bike Helmet Mount",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "13492",
"name": "Bontrager Helmet Mount",
"price": "300.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}