if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "35003",
"name": "FX 2 Disc Gen 3",
"price": "1199.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40676",
"name": "Verve+ 4S",
"price": "4999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40677",
"name": "Verve+ 4S Lowstep",
"price": "4999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40826",
"name": "Dual Sport 3 Gen 5",
"price": "1649.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37653",
"name": "Fetch+ 2",
"price": "8999.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36391",
"name": "Dual Sport+ 2 Stagger",
"price": "3899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36390",
"name": "Dual Sport+ 2",
"price": "3899.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "36823",
"name": "Dual Sport 2 Gen 5",
"price": "1249.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "36453",
"name": "Verve 2 Gen 4",
"price": "1199.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "36824",
"name": "Dual Sport 1 Gen 5",
"price": "1049.0",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "black",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "36811",
"name": "Verve 1",
"price": "999.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "36450",
"name": "Verve 1 Lowstep Gen 4",
"price": "999.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "35001",
"name": "FX 1 Disc Gen 3",
"price": "999.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "32735",
"name": "Verve 2 Disc Gen 4",
"price": "949.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "red",
"list": "CATEGORY",
"position": 14
}
,
{
"id": "32737",
"name": "Verve 1 Disc",
"price": "799.0",
"brand": "Trek",
"category": "Comfort & recreation bikes",
"variant": "black",
"list": "CATEGORY",
"position": 15
}
]
}
});
} else {
console.log("dataLayer");
}