Tracking Event
Để kích hoạt theo dõi sự kiện Firebase hoặc Appflyer bạn có thể cấu hình trên dzoconfig.json.
useFirebaseTracking, useAppsFlyerTracking
1: Active
0: Deactive
Để gọi phương thức Tracking Event:
1. Phương thức Tracking Game ScreenView: Ví dụ: Lobby PVP, Dungeon
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ScreenView:@"Lobby_PVP"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ScreenView:@"Dungeon_1"];
2. Phương thức Tracking Level Achieved: Ví dụ: Người dùng lên cấp 1, 5, 10
[[DZOSDKCoreKit sharedInstance] TrackEventGame_LevelAchieved:1];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_LevelAchieved:5];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_LevelAchieved:10];
3. Phương thức Tracking Complete Registration: Ví dụ: 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. Phương thức Tracking Complete Tutorial: Ví dụ: Complete Tutorial_1
[[DZOSDKCoreKit sharedInstance] TrackEventGame_CompleteTutorial:@"Tutorial_1"];
5. Phương thức Tracking Achievement Unlock: Ví dụ: Open First LootBox, Finish Dungeon Red
[[DZOSDKCoreKit sharedInstance] TrackEventGame_AchievementUnlocked:@"Open_First_Lootbox"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_AchievementUnlocked:@"Final_Dungeon_Red"];
6. Phương thức Tracking ReEngaments: Ví dụ: User Click Event Icon, Click Shop Event Icon
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ReEngagements:@"Open_Event_Icon"];
[[DZOSDKCoreKit sharedInstance] TrackEventGame_ReEngagements:@"Open_Shop_Event"];
7. Phương thức Tracking Event Normal:
Ví dụ: Tracking thông tin tùy chỉnh
[[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];