An event can be every activity that a user experiences in playing games, like game installation, update, and purchasing game items. If you collect the log of these events in your server, you can track and analyze users’ activity for multiple purposes. For example, you can predict user behaviors by tracking level-ups or item upgrades, and use the insights to make your game much more fun to play.
How to use Marketing Attribution¶
You can use third-party mobile app attribution with Hive to track the paths users enter and user activities in your app. The five third-party mobile app attributions provided by the Hive SDK are Adjust, Singular, AppsFlyer, Firebase Analytics, and Airbridge.
Activating Third-party Attribution¶
You can activate/deactivate Third-party Attribution with Hive SDK API. To activate (or deactivate) the attribution, call setEnableTracker() function from Analytics API. Make sure to define the attribution one by one like the following format at the first parameter of this function.
- Adjust:
ADJUST
- Singular:
SINGULAR
- AppsFlyer:
APPSFLYER
- Firebase:
FIREBASE
- Airbridge:
AIRBRIDGE
Note
If you define an third party attribution on hive_config.xml file, the third party attribution is automatically activated. Therefore, you don’t have to manually activate the attribution after initializing Hive SDK.
The following example codes illustrates how to deactivate a marketing attribution.
API Reference: hive.Analytics.setEnableTracker
API Reference: Analytics::setEnableTracker
API Reference: Analytics.setEnableTracker
API Reference: AnalyticsInterface.setEnableTracker
API Reference: HIVEAnalytics:setEnableTracker
Applying Marketing Attribution to Windows¶
The order of applying marketing attribution in a Windows environment is as follows:
To use Steam Appsflyer on Windows environment, please follow the instructions below.
- Go to Release > Plugins > Windows.
- Download the marketing attribution plugin you want to use.
- Unzip the downloaded file.
- Add the DLL file from the unzipped files to {game app executable file path}/plugins/trackers