User metrics in Electron js app

I would like to gather some user data like when the app was used how often by who, for my desktop app. Is there a way to collect this kind of basic data within the electron js app? What is the approach for that?

One approach I would explore is to apply atom-watcher package to “watch” and report on usage of resources.

Search packages.