@1abhishekpandey You will have to map/change event name when the relevant event occurs. The second link has an example for event serialisation, this should help you to understand how to set it.
Once this is done, Analytics backend will map this event as "cart additions" and increment the metric
Example Cart Add ( for ios)
// add events
contextData["&&events"] = "scAdd"