Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "31288",
"name": "Trek 2020 Allant+ 9.9/Diamant Zouma Skidplate",
"price": "1100.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "28225",
"name": "Trek Super Commuter Bosch Motor Armor",
"price": "900.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "31818",
"name": "Trek 2020 Allant+/Diamant Zouma Supreme+ Skidplate",
"price": "1100.0",
"brand": "Trek-Diamant",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "31271",
"name": "Trek Allant+ 9.9/Diamant Zouma Supreme+ Chainstay Guard",
"price": "200.0",
"brand": "Trek-Diamant",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "31528",
"name": "Trek Allant+ & Diamant Zouma+ Skid Plate Motor Armour",
"price": "50.0",
"brand": "Trek-Diamant",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}