void OnDisable() { if (googleAnalytics != null) { googleAnalytics.StopSession(); } }
public void logOutUser() { saveUserGameData(); analytics.LogEvent(new EventHitBuilder().SetEventCategory("Log out").SetEventAction("User logging out")); analytics.StopSession(); user = null; userID = -1; analytics.LogEvent(new EventHitBuilder().SetEventCategory("Log out").SetEventAction("User has logged out")); analytics.DispatchHits(); }
public void StartSession(bool isStart) { if (isStart) { ga.StartSession(); } else { ga.StopSession(); } }
public static void StopSession() { if (googleAnalytics != null) { googleAnalytics.StopSession(); } else { "googleAnalyticsがnullです".LogWarning(); } }
void OnApplicationQuit() { componentAnalitycs.StopSession(); }
private void OnApplicationQuit() { analytics.StopSession(); }
void OnApplicationQuit() { googleAnalytics.StopSession(); }