Skip to content

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

using hive;    
    String trackerName = "ADJUST";    

Analytics.setEnableTracker(trackerName, false);
#include "HiveAnalytics.h"

FString TrackingTypeName = TEXT("ADJUST");
FHiveAnalytics::SetEnableTracker(TrackingTypeName, false);

API Reference: Analytics::setEnableTracker

#include <HIVE_SDK_Plugin/HIVE_CPP.h>    
    using namespace std;    
    using namespace hive;    
    string trackerName = "ADJUST";    

Analytics::setEnableTracker(trackerName, false);

API Reference: Analytics.setEnableTracker

import com.hive.Analytics    
    val trackerName = "ADJUST"    

Analytics.setEnableTrackerWithName(trackerName, false)

API Reference: AnalyticsInterface.setEnableTracker

import HIVEService    
    let trackerName = "ADJUST"    
AnalyticsInterface.setEnableTracker(name: trackerName, enable: false)

API Reference: HIVEAnalytics:setEnableTracker

#import <HIVEService/HIVEService-Swift.h>    
    NSString *trackerName = @"ADJUST";    

[HIVEAnalytics setEnableTrackerWithName: trackerName enable: NO];

Use Steam Appsflyer

To use Steam Appsflyer on Windows environment, please follow the instructions below.

  1. Download Appsflyer (Steam).
  2. Unzip the downloaded file.
  3. Put the Appsflyer.dll under the {GAME_APP_EXECUTION_FILE_PATH}/plugins/trackers.