if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "48089",
"name": "Trek Double Gel Cork Handlebar Tape Set",
"price": "39.99",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27132",
"name": "Bontrager Road Clipless 6 Degree Pedal Cleat Set",
"price": "38.99",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32999",
"name": "Bontrager Road Clipless 9 Degree Pedal Cleat Set",
"price": "38.99",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "47893",
"name": "Trek Gel Cork Handlebar Tape Set",
"price": "34.99",
"brand": "Trek",
"category": "Bike handlebar grips & tape",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "46167",
"name": "Trek RSL Aero Water Bottle",
"price": "34.99",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "bluedark_red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40457",
"name": "Trek Blendr Fendr",
"price": "29.99",
"brand": "Bontrager",
"category": "Bike fenders & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "47322",
"name": "Rapha Logo Cycling Socks",
"price": "28.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "white",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "25254",
"name": "Bontrager Standard Presta Valve Bicycle Tube",
"price": "10.99",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}