if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "33524",
"name": "District+ 4",
"price": "2100.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33525",
"name": "District+ 4 Lowstep",
"price": "2100.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "27981",
"name": "District+ 2",
"price": "1980.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35113",
"name": "Procaliber 9.6",
"price": "1880.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenvisibility_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "29112",
"name": "Verve+ 1 Lowstep",
"price": "1365.0",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35112",
"name": "X-Caliber 9",
"price": "975.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33494",
"name": "District 2 Equipped Lowstep",
"price": "920.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "33510",
"name": "Verve 2 Equipped Lowstep",
"price": "750.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "red",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "33509",
"name": "Verve 2 Equipped",
"price": "750.0",
"brand": "Trek",
"category": "Verve Equipped",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35104",
"name": "Dual Sport 3 Gen 4",
"price": "701.25",
"brand": "Trek",
"category": "Dual Sport bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "28899",
"name": "FX 3 Equipped Stagger",
"price": "630.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "33148",
"name": "Marlin 7 Gen 2",
"price": "618.75",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greenlight_black",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "24065",
"name": "Wahoo 24",
"price": "367.5",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "black_greenvisibility",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "17476",
"name": "Kickster",
"price": "165.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}