if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "34649",
"name": "Marlin 8 Gen 2",
"price": "999.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "redlight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36967",
"name": "Marlin 7 Gen 3",
"price": "949.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33148",
"name": "Marlin 7 Gen 2",
"price": "849.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "36966",
"name": "Marlin 6 Gen 3",
"price": "1099.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "blue_bluedark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35066",
"name": "Marlin 6 Gen 2",
"price": "759.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "41217",
"name": "Marlin 7 Gen 3",
"price": "1599.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "40773",
"name": "Marlin 5 Gen 3",
"price": "929.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "purple_black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "41613",
"name": "Marlin 4 Gen 2",
"price": "749.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "40962",
"name": "Marlin 6 Gen 3",
"price": "1299.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "34587",
"name": "Marlin 5 Gen 2",
"price": "699.93",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "37982",
"name": "Marlin Gen 3 Frameset",
"price": "649.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "black",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "35866",
"name": "Marlin Gen 2 Frameset",
"price": "579.99",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "bluedark_blue",
"list": "CATEGORY",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}