if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "34334",
"name": "Electra Honeycomb Lifestyle Lux Bike Helmet",
"price": "79.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "yellow",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35961",
"name": "Electra Ziggy Lifestyle Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "tan_blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34306",
"name": "Electra EBC 3000 Lifestyle Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "32161",
"name": "Electra Lifestyle Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "30684",
"name": "Electra Bar End Mirror",
"price": "29.99",
"brand": "Electra",
"category": "Bike mirrors",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}