title: Firebase Analytics for games (measure time on each level)
body: <p>I'm building a game and I want to have access to information such as "which level is the most difficult?", or "how much time does a user spend on average in easy difficulty and how much on normal difficulty?", and so on.</p>
  
  <p>Seems that Firebase Analytics will solve this problem but I'm not sure if I have to use predefined or custom events and parameters.</p>
  
  <p>Currently when a user completes a level, I log the following event:</p>
  
  <pre><code>Bundle bundle = new Bundle();
  bundle.putString("difficulty", levelDifficulty); //easy, normal, advanced, etc.
  bundle.putString(FirebaseAnalytics.Param.LEVEL, levelName); //the name or index of the level, for example "Level 1"
  bundle.putLong(FirebaseAnalytics.Param.VALUE, duration); //seconds passed to complete the level
  analytics.logEvent("level_ended", bundle);
  </code></pre>
  
  <p>a) Will I be able to get the information I need with that simple event?</p>
  
  <p>b) Do I have to use a predefined event or a custom event? Similarly, do I have to use predefined or custom parameters on that event?</p>
  
  <p>c) If I use any custom events or custom parameters, will Firebase collect these events automatically or do I have to register these custom events or these custom parameters in the Firebase console?</p>
  
  <p>Thank you.</p>