if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "47281",
"name": "Slash 9.9 XX AXS T-Type Gen 6",
"price": "19999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47246",
"name": "Slash SE Gen 5",
"price": "19499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "brown_bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "47280",
"name": "Slash 9.9 X0 AXS T-Type Gen 6",
"price": "17999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47279",
"name": "Slash 9.8 XT Gen 6",
"price": "11999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47278",
"name": "Slash 9.8 GX AXS T-Type Gen 6",
"price": "10999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "purple",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41668",
"name": "Slash 8 Gen 6",
"price": "7499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greylight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41689",
"name": "Slash 9.9 XX AXS T-Type Gen 6",
"price": "19999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "41681",
"name": "Slash 9.9 X0 AXS T-Type Gen 6",
"price": "17999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "41684",
"name": "Slash 9.8 GX AXS T-Type Gen 6",
"price": "10999.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "37058",
"name": "Slash 9.8 GX AXS Gen 5",
"price": "12499.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}