Skip to content

Commit

Permalink
Add mixpanel analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrosine1153 committed Oct 17, 2023
1 parent 2af1ee6 commit f456dc3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nekoyume/Assets/_Scripts/UI/Widget/Popup/PatrolRewardPopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using mixpanel;
using Nekoyume.Game.Controller;
using Nekoyume.GraphQL;
using Nekoyume.L10n;
Expand Down Expand Up @@ -86,6 +87,11 @@ public async Task InitializePatrolReward()

private async void ShowAsync(bool ignoreShowAnimation = false)
{
Analyzer.Instance.Track("Unity/PatrolReward/Show Popup", new Dictionary<string, Value>
{
["PatrolTime"] = PatrolReward.PatrolTime.Value
});

if (!_initialized)
{
Init();
Expand Down Expand Up @@ -219,6 +225,8 @@ private static PatrolRewardType GetRewardType(PatrolRewardModel reward)

private async void ClaimRewardAsync()
{
Analyzer.Instance.Track("Unity/PatrolReward/Request Claim Reward");

Claiming.Value = true;
Close();

Expand Down

0 comments on commit f456dc3

Please sign in to comment.