@Swathi RS , thank you for reaching out to us. After a bit research, I found that there is no native support for Unity
but for Windows applications.
You can check out this sample Unity project showing how to track button events telemetry using Application Insights.
Further, I would also recommend you to try out Application Insights API for custom events and metrics for which you can get some help from this and this.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.