Track Levels' Fail Rate

Discussion in 'Technical Discussion' started by Appossible, Dec 22, 2018.

  1. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    Hi boxers,

    I'm wondering that if it's possible to track the levels fail rate with any data analytics tool like Game Analytics or Flurry.

    There are 50 levels for now in my game, and I would like to track the difficulty of levels to player.
    So the data would be like this as example:

    Level Entered Failed Completed
    Level 1 100 5 90
    Level 2 80 85 80
    . . . .
    . . . .

    So let's take Game Analytics for example
    I know I need to add this code when the player enters the level 1 Game Field.
    GameAnalytics.addProgressionEventWithProgressionStatus(GAProgressionStatus.Start,"level01");

    and add this code when the player enter the level 1 Game Over screen
    GameAnalytics.addProgressionEventWithProgressionStatus(GAProgressionStatus.fail,"level01");

    BUT the problem is I don't have any idea where to add these code in.

    Does anyone know how to make it? Thanks
     
  2. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    @ZackGriset
    Hi Zack, do you have any idea how to make it? Thank you
     
  3. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190

    GameAnalytics.addProgressionEventWithProgressionStatus(GAProgressionStatus.Start,"level01");
    GameAnalytics.addProgressionEventWithProgressionStatus(GAProgressionStatus.fail,"level01");

    Your code would be added to your AppDelegate file once exported.
     
    Last edited: Dec 23, 2018
  4. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56

    Actually I mean on Android, this is the code for android :)
     
  5. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Ok. Sorry I gave you IOS. In Android add your code to the MainActivity file
     
  6. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    I've tried that, I added them to onCreate function, but it does not work.
     
  7. Codifie

    Codifie Avid Boxer

    Joined:
    Apr 17, 2018
    Messages:
    364
    Likes Received:
    190
    Thats because BB doesn't have a proper Event Handling system, it has no method of knowing you clicked anything. This is something I have been asking for for a long time.
     
  8. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    yeah, right, I think the code should be called everytime when the player completes or fails a level and enter the corresponding UI.

    And I think this is important to a level-based game. In this way, we can see that in which levels players quits the game , then we can finetune those levels.
     
  9. maxcar

    maxcar Boxer

    Joined:
    Sep 27, 2018
    Messages:
    23
    Likes Received:
    4
    I agree, this is something we need to keep track of our games and understand user behavior.

    I was able to use event hooks following this tutorial a while back:
    https://www.buildbox.com/forum/inde...first-brick-for-advanced-customizations.6501/

    I don't know how to integrate it with Game Analytics. On the other hand, it seems complicated to have to make a second button for every event you want to track, specially with a game with multiple worlds, which can lead to confusion and mistakes in the long run.
     

Share This Page