Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "42048",
"name": "Trek Domane+ SLR Seat Tube Cable and Canbus Housing",
"price": "200.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "23371",
"name": "Bontrager Comp Shift Cable",
"price": "100.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "grey",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}