Matomo (ex. Piwik) integration for Ionic app

hey guys,

time goes by, is there any good Matomo (ex. Piwik) integration for ionic apps?
I only found this how to: https://matomo.org/faq/how-to/faq_20304/

Someone has already gained some experience with it? Does the tracking work properly on ios and android plattform (not PWA)?

If I would add the js-code into the *.html files, where should I insert it? After:

</ion-content>

Thanks Sven