if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "22778",
"name": "Electra Cruiser Lux Ad Panels",
"price": "98.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "white_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "12711",
"name": "Electra Delivery 3i Tank Plate",
"price": "93.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "tan",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "27158",
"name": "Electra Café Moto GO! Dropout Kit",
"price": "63.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "24293",
"name": "Electra Townie Derailleur Hanger",
"price": "46.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37569",
"name": "Electra Townie 135 x 12 mm Derailleur Hanger",
"price": "41.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "12591",
"name": "Electra Chainguard Badge",
"price": "10.99",
"brand": "Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "42283",
"name": "Electra Cable Routing Grommet",
"price": "5.99",
"brand": "Electra",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "24291",
"name": "Trek-Electra Disc Derailleur Hanger",
"price": "42.99",
"brand": "Bontrager-Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "41770",
"name": "Bontrager-Electra M3 Button Head Bolt",
"price": "2.99",
"brand": "Bontrager-Electra",
"category": "Bike frame parts",
"variant": "greylight",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}