if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "44507",
"name": "Domane+ SLR 9",
"price": "16999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "white_gold",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44505",
"name": "Domane+ SLR 7",
"price": "13149.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "white_gold",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44607",
"name": "Domane+ SLR 7 AXS",
"price": "13149.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "white_gold",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "49164",
"name": "Domane+ SLR 8 AXS",
"price": "13199.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "47117",
"name": "Domane+ SLR 6",
"price": "8999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "36145",
"name": "Domane+ AL 5",
"price": "4499.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "44506",
"name": "Domane+ SLR 9 AXS",
"price": "12999.99",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}