# Firebase google analytics - web or native

**URL:** <https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619>\
**Category:** ionic-v3\
**Created:** [October 8, 2020, 6:52pm UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619 "2020-10-08T18:52:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wekas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wekas/32/124745_2.png) [@wekas](https://forum.ionicframework.com/u/wekas)\
**Post date:** [October 8, 2020, 6:52pm UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619/1 "2020-10-08T18:52:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tommertom](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Tommertom](https://forum.ionicframework.com/u/Tommertom)\
**Post date:** [October 8, 2020, 8:31pm UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619/2 "2020-10-08T20:31:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wekas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wekas/32/124745_2.png) [@wekas](https://forum.ionicframework.com/u/wekas)\
**Post date:** [October 11, 2020, 3:41am UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619/3 "2020-10-11T03:41:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wekas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wekas/32/124745_2.png) [@wekas](https://forum.ionicframework.com/u/wekas)\
**Post date:** [October 14, 2020, 10:29pm UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619/4 "2020-10-14T22:29:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wekas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wekas/32/124745_2.png) [@wekas](https://forum.ionicframework.com/u/wekas)\
**Post date:** [November 7, 2020, 9:06pm UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619/5 "2020-11-07T21:06:27Z")

</div>

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.

> **[Google Analytics - Ionic Documentation](https://ionicframework.com/docs/native/google-analytics)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

I will use the AngularFire one for web applications though.

---

<div class="post-metadata">

**Author:** ![wekas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wekas/32/124745_2.png) [@wekas](https://forum.ionicframework.com/u/wekas)\
**Post date:** [November 7, 2020, 9:13pm UTC](https://forum.ionicframework.com/t/firebase-google-analytics-web-or-native/197619/6 "2020-11-07T21:13:02Z")

</div>

This one seems to the the favourite for Capacitor:

> **[@capacitor-community/firebase-analytics](https://www.npmjs.com/package/@capacitor-community/firebase-analytics)**
>
> A native plugin for firebase analytics.

  
with this one available also:  

> **[capacitor-firebase-analytics](https://www.npmjs.com/package/capacitor-firebase-analytics)**
>
> Capacitor plugin for iOS and Android for using Firebase Analytics
