if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "48921",
"name": "Oakley DRT5 Maven Helmet",
"price": "264.95",
"brand": "OAKLEY",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "48920",
"name": "Oakley ARO5 Race Helmet",
"price": "264.95",
"brand": "OAKLEY",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "48919",
"name": "Oakley DRT3 Trail Helmet",
"price": "169.95",
"brand": "OAKLEY",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}