Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "34744",
"name": "Bontrager Rapid Pack Hydro",
"price": "2000.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "14798",
"name": "Bontrager Rapid Pack",
"price": "1300.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "greendark",
"list": "More Options",
"position": 2
}
,
{
"id": "21794",
"name": "Bontrager Pro Flat Pack",
"price": "1000.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "31819",
"name": "Bontrager Pro Pocket Case",
"price": "550.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "22453",
"name": "Bontrager 18oz Storage Bottle",
"price": "150.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black_white",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}