if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35277",
"name": "Townie Go! 7D Step-Thru",
"price": "1999.99",
"brand": "Electra",
"category": "Electra e-bikes",
"variant": "yellowvisibility",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30924",
"name": "Allant+ 7",
"price": "5499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35850",
"name": "FX+ 2",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35851",
"name": "FX+ 2 Stagger",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36397",
"name": "Dual Sport+ 2 Stagger",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36396",
"name": "Dual Sport+ 2",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}