Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "25255",
"name": "Bontrager Standard Schrader Valve Bicycle Tube",
"price": "90.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "25254",
"name": "Bontrager Standard Presta Valve Bicycle Tube",
"price": "90.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "00930",
"name": "Bontrager Lightweight Presta Valve Bicycle Tube",
"price": "180.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "00910",
"name": "Bontrager Self-Sealing Presta Valve Bicycle Tube",
"price": "170.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}