if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "5799.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37028",
"name": "Rail 9.8 XT Gen 4",
"price": "10299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41561",
"name": "Rail 8 GX AXS T-Type Gen 3",
"price": "7999.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41986",
"name": "Rail 9.9 X0 AXS T-Type Gen 4",
"price": "14799.99",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41666",
"name": "Rail 9.8 GX AXS T-Type Gen 4",
"price": "10999.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37026",
"name": "Rail 9.7 Gen 4",
"price": "6499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "36791",
"name": "Rail 5 Gen 3",
"price": "5299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35032",
"name": "Rail 5 Gen 2",
"price": "3999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_teal",
"list": "CATEGORY",
"position": 8
}
,
{
"id": "35678",
"name": "Rail 9.9 XX1 AXS Gen 3",
"price": "9499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 9
}
,
{
"id": "37029",
"name": "Rail 9.8 GX AXS Gen 4",
"price": "9299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 10
}
,
{
"id": "35676",
"name": "Rail 9.9 XTR Gen 3",
"price": "8499.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 11
}
,
{
"id": "35680",
"name": "Rail 9.8 GX AXS Gen 3",
"price": "7399.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark_red",
"list": "CATEGORY",
"position": 12
}
,
{
"id": "35672",
"name": "Rail 9.8 XT Gen 3",
"price": "5999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 13
}
,
{
"id": "35682",
"name": "Rail 9.8 GX Gen 3",
"price": "5999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_yellow",
"list": "CATEGORY",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}