Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "23032",
"name": "Trek Checkpoint Carbon Armour",
"price": "2799.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "26161",
"name": "Trek Madone/Émonda SLR Chainkeeper",
"price": "499.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "28332",
"name": "Trek P1 Road Chainstay Protector",
"price": "99.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "grey",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}