Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35559",
"name": "Bontrager Adventure Handlebar Bag",
"price": "199.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "24466",
"name": "Bontrager Kids Handlebar Bag",
"price": "34.99",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "red",
"list": "More Options",
"position": 2
}
,
{
"id": "35894",
"name": "Electra Gnome Handlebar Bag",
"price": "39.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "35895",
"name": "Electra Tutti Frutti Handlebar Bag",
"price": "39.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "pink",
"list": "More Options",
"position": 4
}
,
{
"id": "33611",
"name": "Electra Washi Handlebar Bag with Lid",
"price": "39.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 5
}
,
{
"id": "47332",
"name": "Rapha Bar Bag",
"price": "95.0",
"brand": "Rapha",
"category": "Bike bags",
"variant": "black_greydark",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}