18

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
  • 775
  • 1
  • 10
  • 23

1 Answers1

12

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.

Zoe
  • 27,060
  • 21
  • 118
  • 148
AniV
  • 3,997
  • 1
  • 12
  • 17
  • So there has to be a interaction of at least 10 seconds (default) for the user_engagement event to be triggered? – josue.0 Mar 27 '17 at 21:15
  • 4
    Yes, although that 10 seconds can be broken up over multiple intervals within the session timeout period. More details [here](http://stackoverflow.com/questions/40999239/how-exactly-do-firebase-analytics-handle-session-duration-timeouts/41192499#41192499). – Dan Morenus Mar 28 '17 at 20:37
  • @Dan Morenus so, the user_engagement event that I saw in my exported-to-bigquery data is the one explained in the setCurrentScreen (https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics#setCurrentScreen(android.app.Activity, java.lang.String, java.lang.String) ) documentation? – josue.0 Mar 29 '17 at 22:58
  • 3
    @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](https://support.google.com/firebase/answer/6317485?hl=en) of the events that Firebase Analytics generates automatically. – Dan Morenus Apr 01 '17 at 15:40
  • 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] https://firebase.google.com/docs/analytics/ios/events – George Apr 25 '17 at 20:48
  • 1
    these action are related to session_start event and not for user_engagement event see [Doc](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#parameters_4) – Daniel Givoni Nov 19 '19 at 13:43
  • "user_engagement - when the app is in the foreground or webpage is in focus for at least one second." [ GA4 Automatically collected events](https://support.google.com/analytics/answer/9234069) – situee Nov 15 '22 at 09:43