if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "31275",
"name": "Trek Allant+/Diamant Zouma Supreme+ Derailleur Protector",
"price": "36.99",
"brand": "Trek-Diamant",
"category": "Bike frame parts",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "32684",
"name": " VP Components Square Taper Bottom Bracket",
"price": "29.99",
"brand": "VP Components",
"category": "Bike bottom brackets",
"variant": "greylight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44499",
"name": "VP Components VP-536 Nylon Polymer Bearing Pedal Set",
"price": "24.99",
"brand": "VP Components",
"category": "Bike pedals",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"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": 4
}
,
{
"id": "26060",
"name": "VP Components FP-B701 Old-Style Nut-Type Bottom Bracket",
"price": "19.99",
"brand": "VP Components",
"category": "Bike bottom brackets",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "26232",
"name": "Electra Straight 8 3i Crankset",
"price": "19.99",
"brand": "Electra",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41769",
"name": "Electra Loft Go! 7D Bottom Bracket Cover",
"price": "15.99",
"brand": "Electra",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36832",
"name": "Trek-Diamant Prowheel Crank Preload Bolt",
"price": "13.99",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}