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