if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "1599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "1999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "tealdark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "1099.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "899.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "1599.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "teal_bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "999.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenvisibility_teal",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}