if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "35842",
"name": "FX+ 2",
"price": "2099.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40896",
"name": "FX+ 2 Mid-step LT",
"price": "2399.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40895",
"name": "FX+ 2 LT",
"price": "2399.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "57369",
"name": "FX+ 7 Mid-step",
"price": "5499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greenlight",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "57443",
"name": "FX+ 7",
"price": "5499.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "greenlight",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35843",
"name": "FX 2 Stagger",
"price": "2099.93",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}