Firebase google analytics - web or native

Hi guys,

I have been using the the firebase analytics with Capacitor from Ionic native:
@ionic-native/google-analytics/ngx

With my web apps I use the firebase analytics built in with AngularFire which is awesome and logs all page views automatically.

Just wondering what people use and what is recommended. Should I keep using the package above or is it worth using the Angular version? Will I miss events if I use the web version?

1 Like

My view

If u use the angularfire or even the js sdk u have a google supported and state of the art latest version

And only use the cordova thing when the other does not work

I am using the AngularFire GA in a web project and it works fine so I will go that way for this project and see how it is.

I guess it may think it is a web app when it is a mobile app, will see.

Good read: https://medium.com/firebase-developers/google-analytics-vs-firebase-analytics-vs-google-analytics-97ca645a8aff

1 Like

I have tried the AngularFire version and it is designed for web apps so a lot of information is missing such as device information and you can’t split the data by android vs iOs etc so for now I am using the plugin below but will likely switch to a Capacitor one if there is a good one available.

I will use the AngularFire one for web applications though.

1 Like

This one seems to the the favourite for Capacitor:


with this one available also:
2 Likes