Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41668",
"name": "Slash 8 Gen 6",
"price": "85000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "41689",
"name": "Slash 9.9 XX AXS T-Type Gen 6",
"price": "250000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "41821",
"name": "Slash 9.9 XTR Gen 6",
"price": "210000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 3
}
,
{
"id": "41681",
"name": "Slash 9.9 X0 AXS T-Type Gen 6",
"price": "210000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 4
}
,
{
"id": "41684",
"name": "Slash 9.8 GX AXS T-Type Gen 6",
"price": "150000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greenlight",
"list": "More Options",
"position": 5
}
,
{
"id": "42272",
"name": "Slash C Gen 6 Frame Set",
"price": "70000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "More Options",
"position": 6
}
,
{
"id": "35683",
"name": "Slash C Gen 5 Frame Set",
"price": "70000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_black",
"list": "More Options",
"position": 7
}
,
{
"id": "37960",
"name": "Slash C Gen 5 Frame Set",
"price": "70000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "bluedark_black",
"list": "More Options",
"position": 8
}
,
{
"id": "37961",
"name": "Slash AL Gen 5 Frame Set",
"price": "40000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "tealdark_bluedark",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}