if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "47071",
"name": "Checkpoint SL 5 AXS Gen 3",
"price": "75000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41640",
"name": "Checkpoint ALR 5",
"price": "47000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35296",
"name": "Checkpoint SLR 9 AXS",
"price": "250000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41349",
"name": "Checkpoint SLR 7 AXS",
"price": "180000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35293",
"name": "Checkpoint SLR 6 AXS",
"price": "150000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "yellow_bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41398",
"name": "Checkpoint SL 5 Gen 2",
"price": "65000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35076",
"name": "Checkpoint SL Frame Set",
"price": "40000.0",
"brand": "Trek",
"category": "Gravel bikes",
"variant": "blue_grey",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}