Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "33726",
"name": "Trek Domane+ Handlebar Cable Wrangler",
"price": "100.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "47384",
"name": "Trek Aero RSL Barstem Pro Blendr Mount",
"price": "850.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black_greydark",
"list": "More Options",
"position": 2
}
,
{
"id": "41067",
"name": "Hyena Bluetooth HMI Clamp",
"price": "200.0",
"brand": "Hyena",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}