if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "41712",
"name": "Marlin+ 8",
"price": "5399.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41017",
"name": "Marlin+ 6",
"price": "4299.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47224",
"name": "Procaliber 9.6 Gen 3",
"price": "4199.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenlight_tealdark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35116",
"name": "Roscoe 7",
"price": "1999.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "1199.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "1499.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "899.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35117",
"name": "Roscoe 8",
"price": "2399.99",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35069",
"name": "X-Caliber 8",
"price": "2399.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "749.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenvisibility_teal",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}