I need to add Google Analytics to our Ionic 3 app and am slightly confused as to whether I should use the Google Analytics Plugin or the Firebase Plugin - does anyone have any advice?
I think first decision you need is do you want to go with a hybrid plugin (cordova for ex) or with pure web sdk for GA.
Then you could pick one that suits. Google actually finalizes the merger of their GA suite with Firebase suite -> so you can use either and soon it will be just one.
Cause of that merger I opted for AngularFire’s latest 5.3.0 which now supports GA as a web SDK.
1 Like
Thanks - i know about the plugin (as I mentioned in my post) - it’s more a confusion about which of the two plugins to use (or indeed whether either of them are required if I could use AngularFire). My comment was raised after seeing discussions such as this one .
No plugin needed for angularfire analytics
Havent tested it but at the time I needed it, I referenced to the websdk directly which works flawlessly (as per tutorial below)
Just adding the tracking id in the firebase config
Angularfire planned the update once the websdk was out
Good news for Firebase developers & web:
Not yet available in Angularfire2, but in firebase7.1.0 present
Good stuff video (not mine, nor am I affiliated).
Tom
opened 10:14AM - 26 Sep 19 UTC
closed 06:35PM - 10 Jan 20 UTC
<!--
IMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOS… ED.
Thank you for contributing to the Angular and Firebase communities!
Have a usage question?
=======================
We get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:
- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide
If the official documentation doesn't help, try asking through our officially supported channels:
- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk
- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)
*Please avoid double posting across multiple channels!*
Think you found a bug?
=======================
Yeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.
Have a feature request?
========================
Great, we love hearing how we can improve our products! Remove the template below and
provide an explanation of your feature request. Provide code samples if applicable. Try to
think about what it will allow you to do that you can't do today? How will it make current
workarounds straightforward? What potential bugs and edge cases does it help to avoid?
-->
### Version info
<!-- What versions of the following libraries are you using? Note that your issue may already
be fixed in the latest versions. -->
**Angular:** `v8.x.x`
**Firebase:** `v6.x.x`
**AngularFire:** `v5.x.x`
**Other (e.g. Ionic/Cordova, Node, browser, operating system):** NIL
### Expected behavior
There should be support for Remote Config/Analytics which is included in v7 of the Firebase SDK for JavaScript: [Release Notes](https://firebase.google.com/support/release-notes/js#version_700_-_september_26_2019)
### Actual behavior
There's currently no support for the Remote Config/Firebase Analytics API included in v7 of the JavaScript SDK.
I used this plugin and its an easy set up and works flawlessly.
Hey @richardshergold ,
I would recommend Firebase Plugin for your app analytics.
Thanks!