Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "12290",
"name": "Trek Speed Concept Front Derailleur Frame Grommet",
"price": "99.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "32065",
"name": "Trek Chainstay Derailleur Cable Stop (Round)",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "32072",
"name": "Trek Front Derailleur Cable Sleeve 300mm",
"price": "99.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "white",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}