Game Analytics Integration - Ios

Discussion in 'How Can I...?' started by Benfont, Sep 28, 2017.

  1. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    Do u know eny one where is build.gradle file in eclipse, all analytic tools need to add code there
     
  2. everchangeapps

    everchangeapps Boxer

    Joined:
    Jan 13, 2018
    Messages:
    57
    Likes Received:
    24
    The only update i can make to this, is that i dont have appcontroller.mm (i think BB changed it to appdelegate.mm in a recent update)
    Look for the same boolean to implement start code, and import gameanalytics.h into appdelegate.mm So far working for me. (was trying to put it in gameviewcontroller but kept getting build errors.
     
  3. everchangeapps

    everchangeapps Boxer

    Joined:
    Jan 13, 2018
    Messages:
    57
    Likes Received:
    24
    I do want to see how people got around this part. Im implementing the Start Game event and the end game event send score in Gameanalytics to the Xcode project. But i can't seem to find where to put this code. (i can read code decently well, but don't understand a lot of the hierarchal stuff or where to find it.) Basically i need to trigger an event on world or world Load, and trigger another event on Game over trigger.
     
  4. Danlespect

    Danlespect Avid Boxer

    Joined:
    Jan 21, 2017
    Messages:
    132
    Likes Received:
    77
    Thank you so much!
    Very helpful
     
    Benfont likes this.
  5. everchangeapps

    everchangeapps Boxer

    Joined:
    Jan 13, 2018
    Messages:
    57
    Likes Received:
    24
    For anyone needing the next step, in have implemented "game/world" start and end sessions triggered on worldui and gameoverui , and managed to submit a score with them, however i can't have that score update. Only whatever number i write in the code, if anyone has any clue as how to call from appdelegate the "current score" we track in BB that would be awesome. He's what my code looks like.

    In App Delegate.mm

    Code:
    - (void)screenOnEnter:(const char*) name{
        NSString* n = [NSString stringWithUTF8String:name];
        NSLog(@"SCREEN ON ENTER: %@", n);
    
       
        if([n  isEqual: @"Gameoverui"]){
            [GameAnalytics addProgressionEventWithProgressionStatus:GAProgressionStatusComplete progression01:@"Game" progression02:nil progression03:nil score:1234 ];}
       
        if([n  isEqual: @"Endlessui"]){[GameAnalytics addProgressionEventWithProgressionStatus:GAProgressionStatusStart progression01:@"Game" progression02:nil progression03:nil ];}
    }
    
    The "SCORE:1234" sections sends the score of 1234 but i need to change that 1234 to the score in the current game.
     
    Danlespect and Benfont like this.
  6. noahcdesign

    noahcdesign Avid Boxer

    Joined:
    Oct 10, 2017
    Messages:
    104
    Likes Received:
    44
    Hey Benfort,
    I saw that you have a Hackintosh :D
    Is it booted through a virtual simulator like vmware? Because I myself wanted to aimulate OSx on my PC but I ran into a whole bunch of errors! Could you maybe hit me up on a private chat?

    Thanks,
    Noah
     
  7. swnd

    swnd Boxer

    Joined:
    Mar 5, 2016
    Messages:
    17
    Likes Received:
    8
    Hi everchangeapps and Benfont
    Thank you so much for your great tips. I really appreciate it so much.
    however, I am still straggling integrate it, so please kindly help me?

    am I even the right place?
    I really need to implement these steps, please kindly help.
    Thank you
    Shota
    Screen Shot 2018-02-21 at 21.13.31.png
     
    Snow likes this.
  8. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Any one figured out for v 2.2.8 i .e in which file the scores are stored?
     
  9. swnd

    swnd Boxer

    Joined:
    Mar 5, 2016
    Messages:
    17
    Likes Received:
    8
    Danlespect and Sean Buildbox like this.
  10. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
  11. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Is there a particular reason why you don't use 2.3? Unfortunately there is no way to implement Score submission with 2.2.8 or 2.2.9. You can track retention, the basic setup. But nothing more.
     
    AaroArts likes this.
  12. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    Not at all.But was looking for a way to do on 2.2.8 ;)
     
    Christoph likes this.
  13. Snow

    Snow Boxer

    Joined:
    May 8, 2016
    Messages:
    76
    Likes Received:
    30

    Has anyone found a solution to this?

    Did you manage to integrate GA man?
     
  14. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
  15. Snow

    Snow Boxer

    Joined:
    May 8, 2016
    Messages:
    76
    Likes Received:
    30
  16. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    927
    Likes Received:
    318
    You are welcome...

    No idea regarding user consent.
     
  17. Snow

    Snow Boxer

    Joined:
    May 8, 2016
    Messages:
    76
    Likes Received:
    30
    Hey, is there a tutorial for integrating Game Analytics for android in android studio?
    I really need that because I think its way easier to test a game in google play, since app reviews and updates are handled so much faster!
     

Share This Page