if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "44426",
"name": "Trek Line Comp Flat Pedal Set",
"price": "49.99",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "47998",
"name": "Trek MIK Studs Single Pannier",
"price": "179.99",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41812",
"name": "Trek BellBeats Digital Bike Bell and Speaker",
"price": "179.99",
"brand": "Trek",
"category": "Bike bells & horns",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "44800",
"name": "Trek Ion 100 R/Flare R City Bike Light Set",
"price": "114.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47140",
"name": "Trek Elite Recycled Water Bottle Cage",
"price": "19.99",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "40249",
"name": "Trek Circuit WaveCel Helmet",
"price": "229.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "47324",
"name": "Rapha Core Cycling Mitts",
"price": "39.99",
"brand": "Rapha",
"category": "Men's cycling gloves",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "37375",
"name": "Trek Voda 621 ml/21 oz Water Bottle",
"price": "15.99",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "grey_white",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "37538",
"name": "Quad Lock Out Front Mount Pro",
"price": "74.99",
"brand": "Quad Lock",
"category": "Phone & tablet accessories",
"variant": "black_blue",
"list": "CATEGORY",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}