if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "97500.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "teal",
"list": "CATEGORY",
"position": 1
}
,
{
"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": 2
}
,
{
"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": 3
}
,
{
"id": "35142",
"name": "E-Caliber 9.6 Gen 2",
"price": "65000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}