if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "30369",
"name": "Trek 2020 Madone SL 700c Rigid Forks",
"price": "33799.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34055",
"name": "Trek 2021 Checkpoint SL 700c Rigid Forks",
"price": "32999.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "greendark_gold",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33266",
"name": "Trek 2021 Emonda SL 700c Rigid Forks",
"price": "22699.0",
"brand": "Trek",
"category": "Bike forks",
"variant": "grey_black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}