Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41572",
"name": "Fuel EX 9.8 GX AXS T-Type Gen 6",
"price": "145000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_grey",
"list": "More Options",
"position": 1
}
,
{
"id": "36954",
"name": "Fuel EX 9.9 XTR Gen 6",
"price": "210000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black_grey",
"list": "More Options",
"position": 2
}
,
{
"id": "41645",
"name": "Fuel EX 9.9 XX AXS T-Type Gen 6",
"price": "240000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "41576",
"name": "Fuel EX 9.9 X0 AXS T-Type Gen 6",
"price": "210000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "37141",
"name": "Fuel EX C Gen 6 Frame Set",
"price": "60000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "37142",
"name": "Fuel EX AL Gen 6 Frame Set",
"price": "40000.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_black",
"list": "More Options",
"position": 6
}
,
{
"id": "24516",
"name": "Fuel EX C Frameset",
"price": "62200.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greydark_black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}