if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "25343",
"name": "Bontrager XXX Mountain Bike Shoes",
"price": "5500.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "21718",
"name": "Bontrager Vostra Women's Road Cycling Shoe",
"price": "1300.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "14108",
"name": "Bontrager Sabretooth Toe Spike Kit",
"price": "600.0",
"brand": "Bontrager",
"category": "Cycling shoe parts & insoles",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}