if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "45107",
"name": "Trek Rally WaveCel Mountain Bike Helmet",
"price": "195.49",
"brand": "Trek",
"category": "Bike helmets",
"variant": "tan_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36026",
"name": "Trek Solstice Mips Bike Helmet",
"price": "101.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36029",
"name": "Trek Solstice Bike Helmet",
"price": "59.49",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "48919",
"name": "Oakley DRT3 Trail Helmet",
"price": "169.95",
"brand": "OAKLEY",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}