This document constitutes Voodoo proprietary information. It is strictly confidential and should not be copied, distributed, quoted, or reproduced in whole or in part, nor disclosed to any third party.
Summary (clickable):
STEP 2C: Unity SDK Integration
In this step, you will use the Unity editor to import the necessary SDKs and to link the GameAnalytics and Facebook IDs that were created in the previous steps to your game.
Pre-requisites: |
|
SDK integration |
Note: This will import both the GameAnalytics and Facebook SDKs. The versions included in the package are not necessarily the latest but they have been tested and are stable. If you prefer (or if you have already implemented one of them), you can download the latest SDKs separately from GameAnalytics and Facebook. For implementation, refer to the relevant documentation on their websites.
Note: We currently only provide instructions and support for SDK Integration into Unity. If you are using another platform to create your game it is up to you to integrate the SDKs and ensure that the relevant events are being tracked on GA and FB.
GameAnalytics integration |
Note: if these options are not available, make sure you have correctly completed STEP 2A: GameAnalytics Setup. When logging into your GameAnalytics account, you should be able to see Voodoo as a studio and your game listed underneath.
using GameAnalyticsSDK;
If your game has levels:
If your game has no levels:
GameAnalytics.NewProgressionEvent(GAProgressionStatus.Start, Application.version, “game”);
GameAnalytics.NewProgressionEvent(GAProgressionStatus.Complete, Application.version, “game”, score);
Important: Change score and levelNumber to the variable names you are using in your code. The score variable is optional if your game does not keep score.
Note: these are the only two events that are required during the testing phase, but you can find more information about progression tracking and other events on the GameAnalytics Unity SDK documentation page.
Facebook integration |
Note: If this value is left at 0, your game will crash at startup on an iOS device connected to the internet.
Testing the integration |
Note: It may take between several minutes and several hours for the events to be registered. You can proceed to the next step while waiting.
Next steps... |
|