if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "35116",
"name": "Roscoe 7",
"price": "20000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "97500.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35678",
"name": "Rail 9.9 XX1 AXS Gen 3",
"price": "200000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35680",
"name": "Rail 9.8 GX AXS Gen 3",
"price": "140000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35388",
"name": "Slash 9.8 XT Gen 5",
"price": "90000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35222",
"name": "Top Fuel 9.8 XT Gen 3",
"price": "90000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35142",
"name": "E-Caliber 9.6 Gen 2",
"price": "65000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35065",
"name": "Slash 7 Gen 5",
"price": "55000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "32884",
"name": "Fuel EX 7 Gen 5",
"price": "45000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "33073",
"name": "Fuel EX 5 Gen 5",
"price": "30000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_orangelight",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "35069",
"name": "X-Caliber 8",
"price": "20000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "36969",
"name": "Marlin 8 Gen 3",
"price": "19000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "33148",
"name": "Marlin 7 Gen 2",
"price": "13000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "13000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "tealdark_bluedark",
"list": "CATEGORY",
"position": 14
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "9000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 15
}
]
}
});
} else {
console.log("dataLayer");
}