if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "13500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "25000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "17500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "reddark_bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35116",
"name": "Roscoe 7",
"price": "20000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37982",
"name": "Marlin Frameset Gen 3",
"price": "9000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35867",
"name": "X-Caliber Frame Set",
"price": "10000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35870",
"name": "Roscoe Frame Set",
"price": "10000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35069",
"name": "X-Caliber 8",
"price": "20000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36969",
"name": "Marlin 8 Gen 3",
"price": "19000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35866",
"name": "Marlin Frameset Gen 2",
"price": "6000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}