if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "",
"impressions": [
{
"id": "35840",
"name": "FX+ 2",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35841",
"name": "FX+ 2 Stagger",
"price": "",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}