if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "41410",
"name": "Trek Line Pro Flat Pedal Set",
"price": "159.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45107",
"name": "Trek Rally WaveCel Mountain Bike Helmet",
"price": "249.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "tan_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "68828",
"name": "Trek Angle Adjust 1.0 & 2.0 1-Degree Headset Lower Cup",
"price": "77.99",
"brand": "Trek",
"category": "Bike headsets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "38015",
"name": "Trek Bottles of Australia 19oz Water Bottle",
"price": "15.99",
"brand": "Bottles of Australia",
"category": "Bike water bottles & cages",
"variant": "grey_white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "40281",
"name": "TQ HPR Range Extender Battery",
"price": "1299.99",
"brand": "TQ",
"category": "E-bike batteries & parts",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "24238",
"name": "Bontrager TLR Flash Charger Floor Pump",
"price": "299.99",
"brand": "Bontrager",
"category": "Bike pumps & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "46749",
"name": "Bontrager High Flow Valve Adapter Set",
"price": "49.99",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}