if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "37135",
"name": "Rail 7 Gen 3",
"price": "7499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41663",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "9999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37139",
"name": "Rail 9 Gen 3",
"price": "8499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37133",
"name": "Rail 5 Gen 3",
"price": "5999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37264",
"name": "Rail 9.9 XX1 AXS Gen 4",
"price": "12999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37137",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "12499.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35432",
"name": "Rail 9 Gen 2",
"price": "10999.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greendark_black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}