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

Question about the screen_view #179

Open
loic-parent opened this issue Mar 22, 2024 · 0 comments
Open

Question about the screen_view #179

loic-parent opened this issue Mar 22, 2024 · 0 comments

Comments

@loic-parent
Copy link

loic-parent commented Mar 22, 2024

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

@loic-parent loic-parent changed the title Question about the way to manage the event of navigation Question about the screen_view Mar 22, 2024
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

1 participant