if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"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": 1
}
,
{
"id": "36792",
"name": "Rail 7 Gen 3",
"price": "5799.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "purpledark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36791",
"name": "Rail 5 Gen 3",
"price": "5299.97",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35036",
"name": "Rail 7 Gen 2",
"price": "5299.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "bluedark_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35032",
"name": "Rail 5 Gen 2",
"price": "3999.93",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_teal",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}