angular / angular/angularfire

firebase analytics does not log anything after upgrade to v7

Open
#3,082 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

After upgrade to v7 I have nothing logged in Firebase analytics.

### Version info

Angular: 13.0.0

Firebase: 9.4.1

AngularFire: 7.2.0

In app.module I have this in imports:
`provideFirebaseApp(() => initializeApp(environment.firebaseConfig)),
provideFirestore(() => getFirestore()),
provideStorage(() => getStorage()),
provideFunctions(() => {
const functions = getFunctions();
functions.region = "europe-west1";
return functions;
}),
providePerformance(() => getPerformance()),
provideMessaging(() => getMessaging()),
provideAnalytics(() => getAnalytics()),
provideAuth(() => getAuth()),`

(I do have measurementId in firebaseConfig)
Am I missing some extra step to get firebase analytics initialized in V7 to automatically start logging activity?

### Expected behavior

I need events logged in Firebase analytics

### Actual behavior

Nothing gets logged.

Contributor guide

Open the contributing guide

Research direction

Review app.module's provideAnalytics(() => getAnalytics()) setup and the Firebase configuration, including the measurementId, using the listed Angular, Firebase, and AngularFire versions. Reproduce the upgrade scenario; done means Firebase Analytics records events as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
analytics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.