if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "34649",
"name": "Marlin 8 Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "redlight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33148",
"name": "Marlin 7 Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35066",
"name": "Marlin 6 Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35866",
"name": "Marlin Frameset Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "29759",
"name": "Marlin 4 Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}