if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "GBP",
"impressions": [
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "1100.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "600.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35116",
"name": "Roscoe 7",
"price": "1220.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "teal_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "850.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37982",
"name": "Marlin Frameset Gen 3",
"price": "600.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35117",
"name": "Roscoe 8",
"price": "1350.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "33258",
"name": "Procaliber 9.5 Gen 2",
"price": "1350.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35870",
"name": "Roscoe Frame Set",
"price": "775.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35867",
"name": "X-Caliber Frame Set",
"price": "550.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "35118",
"name": "Roscoe 9",
"price": "1675.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "33192",
"name": "Roscoe 6",
"price": "825.0",
"brand": "Trek",
"category": "Trail mountain bikes",
"variant": "grey_reddark",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "550.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "28470",
"name": "X-Caliber Frame Set",
"price": "425.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "35866",
"name": "Marlin Frameset Gen 2",
"price": "375.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}