How can I track user usage in my app?

MS Clarity will blow your mind. clarity.microsoft.com

It’s free.
It works really well (no comment about other MS products)
Look through the plugins and the forum announcements.