Capacitor - JS Google Analytics on iOS

we are using Capacitor for our app that is also running in browser and we want to use same analytics as we use on web. We are using Google Analytics, it works without any issue on web and on Android Capacitor, but it is not working for iOS Capacitor, no error thrown but also no events are logged. Any ideas? Thanks.