Tracking Event
To Active tracking Event Firebase, or Appflyer you can config on dzoconfig.json.
useFirebaseTracking, useAppsFlyerTracking
1: Active
0: Deactive
To call Method for tracking event:
1. Method Tracking Game ScreenView: Example: At Lobby PVP, Dungeon
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ScreenView:@"Lobby_PVP"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ScreenView:@"Dungeon_1"];
2. Method Tracking Level Achieved: Example: User level up 1, 5, 10
[[DZOSDKCoreKit sharedInstance] TrackEventGame_LevelAchieved:1];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_LevelAchieved:5];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_LevelAchieved:10];
3. Method Tracking Complete Registration: Example: Start_Update, End_Update, Create_Charater
[[DZOSDKCoreKit sharedInstance] TrackEventGame_CompleteRegistration:@"Start_Update"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_CompleteRegistration:@"End_Update"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_CompleteRegistration:@"Create_Charater"];
4. Method Tracking Complete Tutorial: Example: Complete Tutorial_1
[[DZOSDKCoreKit sharedInstance] TrackEventGame_CompleteTutorial:@"Tutorial_1"];
5. Method Tracking Achievement Unlock: Example: Open First LootBox, Finish Dungeon Red
[[DZOSDKCoreKit sharedInstance] TrackEventGame_AchievementUnlocked:@"Open_First_Lootbox"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_AchievementUnlocked:@"Final_Dungeon_Red"];
6. Method Tracking ReEngaments: Example: User Click Event Icon, Click Shop Event Icon
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ReEngagements:@"Open_Event_Icon"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ReEngagements:@"Open_Shop_Event"];
7. Method Tracking Event Normal:
Example: Some info need to track with simple name
[[DZOSDKCoreKit sharedInstance] TrackEventGame:@"Custom_info_1"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame:@"Custom_info_2"];
8. Method Tracking Event Custom:
NSArray *items = @[product1];
NSDictionary *ecommerce = @{
@"items": items,
@"ListName" : @"Search Results",
};
NSString *eventName = @"ItemList";
[[DZOSDKCoreKit sharedInstance] TrackEventGame:eventName parameters:ecommerce];
9. Set role User (Ver 2.20.1)
RoleInfo *_roleInfo = [[RoleInfo alloc] init];
_roleInfo.roleID=@"TestRoleID"; //game roleID
_roleInfo.serverGameID=@"1"; //game Server/Channel/Zone
_roleInfo.charName=@"TestRoleName"; //Ingame Name
_roleInfo.level=@100;
_roleInfo.serverGameName=@"Server 1"; //Server Name/Zone Name/Channel name
[[DZOSDKCoreKit sharedInstance] set_RoleInfo:_roleInfo];