Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "INR",
"impressions": [
{
"id": "41607",
"name": "Domane AL 4 Gen 4",
"price": "149899.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "More Options",
"position": 1
}
,
{
"id": "41587",
"name": "Domane AL 2 Gen 4",
"price": "99999.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "More Options",
"position": 2
}
,
{
"id": "33082",
"name": "Domane AL 3 Gen 3",
"price": "107199.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "grey",
"list": "More Options",
"position": 3
}
,
{
"id": "33083",
"name": "Domane AL 2 Gen 3",
"price": "85299.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_black",
"list": "More Options",
"position": 4
}
,
{
"id": "33037",
"name": "Domane AL 2 Rim",
"price": "65899.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}