Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "36969",
"name": "Marlin 8 Gen 3",
"price": "19000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "25000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "13500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "12500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "17500.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "reddark_bluedark",
"list": "More Options",
"position": 5
}
,
{
"id": "37982",
"name": "Marlin Frameset Gen 3",
"price": "9000.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}