if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "23015",
"name": "Miranda Crankarm Bolts",
"price": "32.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36412",
"name": "Trek 2022 Session 29 Idler Pulley 3.5mm Spacer",
"price": "11.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "31390",
"name": "Prowheel Crankarm Bolts",
"price": "11.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36411",
"name": "Trek 2022 Session 29 Idler Pulley 4.5mm Black Spacer",
"price": "11.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "45279",
"name": "Trek Domane+ SLR 2x Crank Spider Spacer",
"price": "9.99",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "44990",
"name": "FSA ML558 Bosch Gen 3 ISIS Crank Arm Bolts - Set of 2",
"price": "22.99",
"brand": "FSA",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36832",
"name": "Trek-Diamant Prowheel Crank Preload Bolt",
"price": "13.99",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}