if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "14318",
"name": "Electra Lifestyle Lux Solid Color Helmet",
"price": "79.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "greylight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34334",
"name": "Electra Honeycomb Lifestyle Lux Bike Helmet",
"price": "79.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "yellow",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35961",
"name": "Electra Ziggy Lifestyle Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "tan_blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35960",
"name": "Electra Tutti Frutti Lifestyle Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "pink",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32161",
"name": "Electra Lifestyle Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34306",
"name": "Electra EBC 3000 Lifestyle Bike Helmet",
"price": "49.99",
"brand": "Electra",
"category": "Bike helmets",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "40650",
"name": "Electra Eclipse Socks",
"price": "29.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "teal_pinkdark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "40649",
"name": "Electra Banana Dance Socks",
"price": "29.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "40653",
"name": "Electra Richie Socks",
"price": "29.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "grey",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "40651",
"name": "Electra Tiki Time Socks",
"price": "19.99",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "reddark",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}