Has Anyone Successfully Integrated "game Analytics Sdk" For Ios For A Buildbox Game?

Discussion in 'Technical Discussion' started by MichKrane, Jul 28, 2017.

  1. MichKrane

    MichKrane Boxer

    Joined:
    Sep 19, 2016
    Messages:
    43
    Likes Received:
    49
    Alright. So here I am, desperately looking for advice on how to do this. Basically I have contacted a publisher but they say that the first thing I have to do is integrate the "Game analytics SDK". Is there someone who can actually help me or who has successfully integrated the Game analytics SDK in their game? Time is pressing and this is urgent.
    Any help in the next 24 hours will literally save me.

    I know that this is too much to ask for, but if someone knows how to help me just let me know as fast as possible.
     
  2. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    Yes, I use Flurry in all my iOS games - works like a charm, it is easy to implement. And it is free. I totally recommend it.
    Follow this guide and let me know if you manage to implement it,
    https://developer.yahoo.com/flurry/docs/integrateflurry/ios/

    I was thinking about writing a tutorial, I just haven't had the time.
    I might do it this weekend,

    Good luck!
    Jonathan
     
    AaroArts and Christoph like this.
  3. MichKrane

    MichKrane Boxer

    Joined:
    Sep 19, 2016
    Messages:
    43
    Likes Received:
    49
    Thanks for the quick response man, but I am not talking about "Game analytics" as a general of any game analytics.
    They specifically asked me to add the "Game analytics SDK" and they gave me this link: http://www.gameanalytics.com/
     
  4. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    Sorry man, I completely misread that.
    I am not at home at the moment, but I might try to implement the SDK to see if I make it work.
    Sorry for the confusion!
     
    MichKrane likes this.
  5. MichKrane

    MichKrane Boxer

    Joined:
    Sep 19, 2016
    Messages:
    43
    Likes Received:
    49
    Thanks, if you make it work let me know immediately, because this could determine whether I have a chance in the publishing deal or not. Thanks in advance!
     
    Benfont likes this.
  6. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    what's your email address?
     
  7. MichKrane

    MichKrane Boxer

    Joined:
    Sep 19, 2016
    Messages:
    43
    Likes Received:
    49
  8. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I haven't looked at this specific analytics SDK but it should work the same like the others. So yeah, shouldn't be a problem to implement.

    Having said that this might not be what your publisher wants. With Buildbox games you only can track new users/updates and general sessions, as well as geo stuff of course. But no events like UIs, power ups, character unlocks etc. there is no extra code available for this. For iOS you can make use of the extra custom call. Android only has the start call. Oh and there is this URL button hack but I never tried it.
     
    Benfont likes this.
  9. Buildbox

    Buildbox Administrator

    Joined:
    Sep 15, 2015
    Messages:
    101
    Likes Received:
    201
    Hi Mich, you have a deal in the works, you should contact support@buildbox.com. They work with all the major publishers and have many ways of putting in specifically requested SDKs in similar situations.
     
    Christoph and Benfont like this.
  10. thejoa

    thejoa Boxer

    Joined:
    Sep 9, 2017
    Messages:
    4
    Likes Received:
    0
    So how did you integrate the GameAnalytics SDK? I need it as well for a publishing deal.
     
  11. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    hey man, I managed to implement those but for iOS only I still haven' tried for Android. It is quite straight forward so I am just going to copy here my notes. Let me know if you understand everything. I got help from @MichKrane to make it work.

    Game Analytics SDK iOS integration:

    1) Drag “GameAnalytics.h” and “libGameAnalytics.a” your project - don't forget to tick (copy items if needed)
    2) Then go to Build Phases under "Link Binary with Libraries" and add the following libraries:
    • AdSupport.framework
    • SystemConfiguration.framework
    • libsqlite3.tbd
    • libz.tbd

    3) Then click on others and add : (from the Game Analytics SDK folder)
    • libGameAnalytics.a

    4) After that is done copy the following on your appcontroller.mm
    #import "GameAnalytics.h"

    Then scroll down and find the following lines:

    -(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{
    "...BB code here…” then at the end of all that before the "RETURN YES;" value, paste the following:

    // GAME ANALYTICS: Enable implementation log (disable in production)
    [GameAnalyticssetEnabledInfoLog:YES];
    [GameAnalyticssetEnabledVerboseLog:YES];

    // Set build version (Objective-C)
    [GameAnalyticsconfigureBuild:mad:"2.0"];

    // Initialize (Objective-C)
    [GameAnalyticsinitializeWithGameKey:mad:"YourGameKeyHere"
    gameSecret:mad:"YourGameSecretHere"];

    It should look like this in the end:

    upload_2017-9-21_20-44-5.png

    I hope this notes help you,
    Good luck with your game!
     

    Attached Files:

    Last edited: Sep 21, 2017
  12. thejoa

    thejoa Boxer

    Joined:
    Sep 9, 2017
    Messages:
    4
    Likes Received:
    0
    Hi Benfont,
    Thanks for the quick respond.
    I tried the exact same steps and still got 4 errors, as you can see in the image.
    I fail to see what I did wrong here.

    Screen Shot 2017-09-21 at 10.33.57 PM.png
     
  13. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    Did you import?
    "#import "GameAnalytics.h"

    Paste that on the top of the AppController.mm, just where the other #import "..." are
     
  14. thejoa

    thejoa Boxer

    Joined:
    Sep 9, 2017
    Messages:
    4
    Likes Received:
    0
    Hi Benfont,
    Yes I did import the GameAnalytics.h file.
    Any other suggestions?

    Thanks for the help :)
     
  15. thejoa

    thejoa Boxer

    Joined:
    Sep 9, 2017
    Messages:
    4
    Likes Received:
    0
    I just found out what the problem was, I had to add a space between the GameAnalytics and the rest of the code. The 4 errors were gone, but I got a new error that says "Apple Mach -O Linker (Id) Error, Linker command failed with exit code 1 (use -v to see invocation)". I read that this was because I was working in the .xcodeproj file and should be working in the .xcworkspace file. So I downloaded cocoapods and made an .xcworkspace file, but I still get the same error. I don't know what to do now.
     
  16. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    hey, I just checked the code I pasted here, and this forum converts some of the lines to emojis (it would be nice if BB removed that in my opinion)
    Anyway I made the integration work by just following the instructions on GA's site. copy the code from their website not from this post.

    https://www.gameanalytics.com/docs/ios-sdk

    I always work in the xcodeproj and do the whole thing manually, not with cocoa pods.

    Try again this time with the code GA provides and use this post only as a reference.
    It does work - you have to do it step by step.
    good luck with the integration!

    let us know how it went in the end,
    Cheers,
     
  17. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    I ALSO READ TUTORIAL, BUT THEY DONT TELLING WHERE TO ADD THIS LINE OF CODE ALSO COCOAPODS INSTALATIONS IS NOT WELL WHERE WE MUST ADD THIS CODES??
     
  18. whitedogapp

    whitedogapp Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    295
    Likes Received:
    72
    CAN U MAD FOR US STEP BY STEP TUT it help lot BB developers to learn because many publishers want game analytics
     
  19. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    If anyone needs help, I offer my services to implement GameAnalytics into both, iOS and Android.
     
    AaroArts likes this.
  20. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278

Share This Page