capacitor-community / capacitor-community/firebase-analytics
Question about the screen_view
- Dominant language
- Java
- Stars
- 178
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have prepared the data in the application but I'd like to know what is the best approach to track the navigation.
I have defined the setup method in the file app.component.ts:
`FirebaseAnalytics.initializeFirebase(env.fbConfigs)`
I use the default method "setScreenName":
```
FirebaseAnalytics.setScreenName({
screenName: "A custom name of the page),
nameOverride: "nameOfTheClass"
});
```
I need to get more information for each screen_view such as "lang" and "ID".
So is it possible to add/pass some params for the event screen_view using a custom event call instead of the method "setScreenName"?
Something like this:
```
FirebaseAnalytics.logEvent({
name: "screen_view",
params: {
screenName: 'A custom name of the page)',
nameOverride: "nameOfTheClass"
pageId: 5,
pageLang: 'de',
}
});
```
_Thanks for your help,_
_Loïc_
Contributor guide
Assessment
This issue has not been assessed yet.