if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "35041",
"name": "Trek RSL Mountain Bike Shoe",
"price": "8550.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45271",
"name": "Trek Cambion Mountain Bike Shoe",
"price": "6500.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45272",
"name": "Trek Foray Mountain Bike Shoe",
"price": "3800.0",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34130",
"name": "Bontrager Foray Mountain Bike Shoes",
"price": "2350.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark_orangevisibility",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "24883",
"name": "Bontrager Rally Mountain Bike Shoes",
"price": "2250.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34129",
"name": "Bontrager Evoke Mountain Bike Shoes",
"price": "1750.0",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "bluedark_orangevisibility",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}