if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "28299",
"name": "Verve+ 2 Gen 2",
"price": "3799.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28300",
"name": "Verve+ 2 Lowstep Gen 2",
"price": "3799.99",
"brand": "Trek",
"category": "Electric hybrid bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}