Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "41479",
"name": "Trek Cargo Bike 6-Bolt Disc 20" Wheel",
"price": "2100.0",
"brand": "Trek",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37168",
"name": "Bontrager Connection Dynamo Centerlock 700c Wheel",
"price": "3300.0",
"brand": "Bontrager",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37656",
"name": "Bontrager Connection Ride+ 32H Disc 700c Wheel",
"price": "1500.0",
"brand": "Bontrager",
"category": "E-bike drivetrain parts",
"variant": "black_greydark",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}