if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "40913",
"name": "Dual Sport+ 2 LT",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "1399.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40824",
"name": "Dual Sport 2 Gen 5",
"price": "1099.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40823",
"name": "Dual Sport 1 Gen 5",
"price": "899.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47243",
"name": "FX Sport 4",
"price": "2599.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "2499.99",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36397",
"name": "Dual Sport+ 2 Stagger",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36396",
"name": "Dual Sport+ 2",
"price": "2999.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36826",
"name": "Dual Sport 3 Gen 5",
"price": "1599.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "899.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "green",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "899.99",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "red",
"list": "CATEGORY",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}