TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2015 |
Maintained by Aleksandras Smirnovas, Nikolaj Pedersen, René Bischoff, GA Service Account, Nikolaj Pedersen.
This SDK is implementing the V1 API version of GameAnalytics.
The V2 API version can be found here.
It adds features like progression, validated purchases and virtual currency tracking.
The SDK update FAQ contain updated information about future V2 SDK releases.
Changelog
1.0.3
Make deprecated in the pod-file.
1.0.2
1.0.1
1.0.0
Import the library by following the instructions here.
Initialise using the following:
[GameAnalytics setDebugLogLevelVerbose:TRUE];
[GameAnalytics initializeWithGameKey:@"xxx" secretKey:@"xxx"];
The rest of the commands are well documented in the header file. They are listed below for convenience:
[GameAnalytics newDesignEventWithId:@"PickAmmo:Bullets" value:@25];
[GameAnalytics newBusinessEventWithId:@"PurchaseCoins" currency:@"USD" amount:@999];
[GameAnalytics setUserInfoWithGender:@"M" birthYear:@1977 friendCount:@7];
[GameAnalytics setReferralInfoWithPublisher:@"ChartBoost" installSite:@"Facebook" installCampaign:@"Launch" installAdgroup:nil installAd:@"Launch Ad 1" installKeyword:nil];
[GameAnalytics newErrorEventWithMessage:@"Game Stalled" severity:GASeverityTypeError];
[GameAnalytics logFPS];
[GameAnalytics stopLoggingFPS];
[GameAnalytics setMinimumFPSTimePeriod:10];
[GameAnalytics setCriticalFPSLimit:15];
[GameAnalytics setLocalCaching:FALSE];
[GameAnalytics setMaximumEventStorage:6];
[GameAnalytics clearDatabase];
[GameAnalytics setAutoBatch:FALSE];
[GameAnalytics manualBatch];
[GameAnalytics setSendEventsInterval:10];
[GameAnalytics enableExceptionHandler:TRUE];
[GameAnalytics setSessionTimeOut:10];
[GameAnalytics getUserID];
[GameAnalytics setUserID:@"bob127"];