if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "40905",
"name": "Dual Sport+ 2 LT",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40487",
"name": "Dual Sport+ 2 LT",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "40488",
"name": "Dual Sport+ 2 Mid-step LT",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35853",
"name": "Dual Sport+ 2 Stagger",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35852",
"name": "Dual Sport+ 2",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}