How is user_engagement event generated in firebase analytics?

18,787

The user_engagement event is triggered when a user interacts with the app for a minimum duration.

This can be controlled using the setMinimumSessionDuration() method call, also the timeout for a session can be controlled using the setSessionTimeoutDuration() call.

For tracking screen view it is recommended to integrate Firebase with GTM. Take a look at this tutorial for implementation details.

Share:
18,787

Related videos on Youtube

josue.0
Author by

josue.0

I have been coding mobile apps, backend apps and some other hobby projects for a while now. The app I am a core-dev in (TuRuta.pe, on forbes) has over half a million downloads now. I like programming competitions, my team and I advanced to the ACM-ICPC world finals 2016. I am a systems engineering dropout from National University of Engineering (Peru).

Updated on April 05, 2022

Comments

  • josue.0
    josue.0 over 2 years

    I have seen a param named firebase_screen_class (along with engagement_time_msec, firebase_event_origin and firebase_screen_id) in the user_engagement event in bigQuery, it contains the name of activity classes in my app. Please, can you explain these params and how is the user_engagement event generated?

    I also wonder whether this can be useful to get the quantity of impressions or screen views of the activities in my app.

  • josue.0
    josue.0 over 7 years
    So there has to be a interaction of at least 10 seconds (default) for the user_engagement event to be triggered?
  • Dan Morenus
    Dan Morenus over 7 years
    Yes, although that 10 seconds can be broken up over multiple intervals within the session timeout period. More details here.
  • josue.0
    josue.0 over 7 years
    @Dan Morenus so, the user_engagement event that I saw in my exported-to-bigquery data is the one explained in the setCurrentScreen (firebase.google.com/docs/reference/android/com/google/fireb‌​ase/…, java.lang.String, java.lang.String) ) documentation?
  • Dan Morenus
    Dan Morenus over 7 years
    @josue.0 Short answer, yes. Firebase Analytics generates engagement events automatically and includes the current screen information with them as the user navigates through your app. Here's a summary of the events that Firebase Analytics generates automatically.
  • George
    George about 7 years
    You may implement custom parameters, related to your screen views, if needed. This is described in the “Log events” document, [1] under the “Log events” subtitle. [1] firebase.google.com/docs/analytics/ios/events
  • Daniel Givoni
    Daniel Givoni over 4 years
    these action are related to session_start event and not for user_engagement event see Doc