if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "35757",
"name": "Speed Concept SLR 9",
"price": "250000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41499",
"name": "Speed Concept SLR 7 AXS",
"price": "205000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35577",
"name": "Speed Concept SLR 7",
"price": "190000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35756",
"name": "Speed Concept SLR 9 AXS",
"price": "260000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35754",
"name": "Speed Concept SLR 6 AXS",
"price": "190000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}