Using the SDK - GameAnalytics/GA-SDK-CPP GitHub Wiki
Now we should be ready for adding code to activate the SDK!
There are 3 phases the SDK will go through.
- configuration
- initialization
- adding events or changing dimensions
Configuration calls configure settings for the SDK and some will not be able to be altered after initialize has been called.
Initialize call will start the SDK and activate the first session.
The configuration and initialization steps should be called at the beginning of the game for example inside the GameInit method.
Once step 1 & 2 is done you can add events at different parts of the game code where some relevant action is happening.
Remember to import the GameAnalytics package whenever you need to call the SDK.
#include "GameAnalytics.h"