if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "37136",
"name": "Rail 7 Gen 3",
"price": "9999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41692",
"name": "Rail 5 Gen 3",
"price": "8999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41665",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "14499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37140",
"name": "Rail 9 Gen 3",
"price": "11999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35188",
"name": "Rail 7 Gen 2",
"price": "9999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37134",
"name": "Rail 5 Gen 3",
"price": "8499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35191",
"name": "Rail 5 Gen 2",
"price": "8499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "37270",
"name": "Rail 9.9 XX1 AXS Gen 4",
"price": "17999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "37138",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "13499.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35581",
"name": "Rail 9.8 XT Gen 3",
"price": "12999.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}