Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Firebase Remote Config/Analytics (included in v7 of Firebase) #2178

Closed
EdricChan03 opened this issue Sep 26, 2019 · 15 comments
Closed

Comments

@EdricChan03
Copy link
Contributor

EdricChan03 commented Sep 26, 2019

Version info

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

Actual behavior

There's currently no support for the Remote Config/Firebase Analytics API included in v7 of the JavaScript SDK.

@jamesdaniels
Copy link
Member

Hey there @EdricChan03, we're definitely planning to add support in short order here. Thanks for raising!

@EdricChan03 EdricChan03 changed the title Support for Firebase Remote Config (included in v7 of Firebase) Support for Firebase Remote Config/Analytics (included in v7 of Firebase) Sep 27, 2019
@jimmykane
Copy link

In regards to this does the new Analytics (just tracking) not work at all?

For example I updated my environment configs to add the measurementId property but nothing happens.

@dominikstrasser
Copy link

dominikstrasser commented Sep 29, 2019

You can get analytics up and running right now by using firebase directly.
you simply have to import the analytics script in your main.ts

import 'firebase/analytics';

and call firebase.analytics() somewhere in your code - i did it in app.component.ts


import * as firebase from 'firebase/app'

ngOnInit() {
 firebase.analytics()
}

@RezaRahmati
Copy link

RezaRahmati commented Sep 30, 2019

@dominikstrasser Thanks

I tried, but there is no analytics method in firebase

I am using "firebase": "^6.6.2", "@angular/fire": "^5.2.1",

Also not able to install firebase 7 (if it's in that version) because I get below error
@angular/fire@5.2.0 requires a peer of firebase@>= 5.5.7 <7 but none is installed

even with @angular/fire@next I get
@angular/fire@5.2.0-rc.3 requires a peer of firebase@>= 5.5.7 <7 but none is installed

image

@dominikstrasser
Copy link

@RezaRahmati
Firebase Analytics for Web was just released with v7 of Firebase.

https://firebase.google.com/support/release-notes/js

either you install firebase@7.0.0 or wait for the @angular/fire implementation.

@schankam
Copy link

schankam commented Oct 2, 2019

@RezaRahmati Use --force

@jamesdaniels
Copy link
Member

I've been testing and it seems there's no obvious incompatibilities with Firebase v7, so force installing firebase 7 should be ok. Let me know if you run into anything. I'll be aiming to get an initial attempt out this week.

@jamesdaniels
Copy link
Member

WIP #2187

@jsitu
Copy link

jsitu commented Oct 11, 2019

@jimmykane where do you find the measurementId? I upgraded my Firebase project to integrate with Google Analytics, but I don't see the measurementId in the project settings config though.

@jimmykane
Copy link

@jsitu I found it in the project config.

@jamesdaniels
Copy link
Member

After you upgrade you’ll need to get your settings again, or “create a web app” if you haven’t done that before.

@pycraft114
Copy link

Does angularfire have official documentation for integrating Google Analytics ?

@stanislavromanov
Copy link

Does angularfire have official documentation for integrating Google Analytics ?

Once this ticket is implemented you won't have to do this yourself in theory.

@danconte72
Copy link

I've been testing Analytics on 5.3.0 and it is working properly! Tks

@IAM5K
Copy link

IAM5K commented Apr 3, 2022

@dominikstrasser Thanks

I tried, but there is no analytics method in firebase

I am using "firebase": "^6.6.2", "@angular/fire": "^5.2.1",

Also not able to install firebase 7 (if it's in that version) because I get below error @angular/fire@5.2.0 requires a peer of firebase@>= 5.5.7 <7 but none is installed

even with @angular/fire@next I get @angular/fire@5.2.0-rc.3 requires a peer of firebase@>= 5.5.7 <7 but none is installed

image

while installing use --force and it will get installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests