Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "30767",
"name": "Trek Precaliber 16 Saddle with Integrated Seatpost",
"price": "500.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "30765",
"name": "Trek Precaliber 20 Saddle with Integrated Seatpost",
"price": "500.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "30766",
"name": "Trek Precaliber 12 Saddle with Integrated Seatpost",
"price": "500.0",
"brand": "Trek",
"category": "Bike saddles",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}