if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "24997",
"name": "Trek Madone SLR Colour-Matched Carbon Internal Seatmast Cap",
"price": "27799.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "red_black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "42278",
"name": "Trek Speed Concept SLR Seatmast",
"price": "24699.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "30477",
"name": "Trek Madone SL Colour-Matched Carbon Internal Seatmast Cap",
"price": "23399.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33924",
"name": "Trek Domane SL Color-Matched Carbon Internal Seatmast Cap",
"price": "21299.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "36135",
"name": "Trek Madone SL Seatmasts",
"price": "20599.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "red_black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "11255",
"name": "Trek Colour-Matched Carbon Seatmast Cap & 7 mm Round Ears",
"price": "10599.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "22439",
"name": "Trek Round Alloy Seatmast Cap & 7mm Ears",
"price": "4799.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}