@azeezolaniran I think you should really thread lightly here, as the general consensus is that most customers that have on-premise installations are not particularly happy with add-ons that “phone home” without their knowledge or consent, or the ability to turn it off.
Having said that, I know that there are several other vendors that include anonymous Google Analytics for tracking usage in their add-ons, and there are also vendors that are using tools like sentry.io for tracking javascript errors. However, it is always advised to A) make sure you have an EULA which stipulates that you are doing this and B) add the ability for customers to disable this feature. It would perhaps be even better to disable any error tracking / data collection by default and only enable this in case of a support request.
Hope this helps!