if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "35916",
"name": "Trek 2022 Domane SL 5 700c Rigid Fork",
"price": "988.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "white_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35914",
"name": "Trek 2022 Domane SL 7 700c Rigid Fork",
"price": "988.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "grey_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35915",
"name": "Trek 2022 Domane SL 6 700c Rigid Fork",
"price": "988.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "red_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35697",
"name": "Trek 2022 Emonda SL 700c Rigid Fork",
"price": "935.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "red_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45235",
"name": "SRAM TwistLoc Ultimate Dual Remote Lockout Set",
"price": "419.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "11836",
"name": "Trek Kids 24˝ Suspension Forks",
"price": "312.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "11882",
"name": "Trek Kids 20˝ Suspension Forks",
"price": "229.99",
"brand": "Trek",
"category": "Bike forks",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35226",
"name": "SR Suntour NEX Disc Unthreaded 63mm Hard 700c Suspension Fork",
"price": "251.99",
"brand": "SR SUNTOUR",
"category": "Bike forks",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "33539",
"name": "Trek 2020 Allant+/Diamant Zouma+ Suspension Fork Crown Washer",
"price": "44.99",
"brand": "Trek-Diamant",
"category": "Bike forks",
"variant": "grey",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}