public void LogEvent(gaEventCategories eventType, string actionTaken, string label) { if (isAnalyticsEnabled && googleAnalytics != null) { LogEvent(eventType, actionTaken, label, 0); } }
public void LogEvent(gaEventCategories eventType, string actionTaken, string label, long eventValue) { if (isAnalyticsEnabled == true && googleAnalytics != null) { googleAnalytics.LogEvent(new EventHitBuilder() .SetEventCategory(eventType.ToString()) .SetEventAction(actionTaken) .SetEventLabel(label) .SetEventValue(eventValue)); } }
public void LogEvent(gaEventCategories eventType, string actionTaken, string label, long eventValue) { if (isAnalyticsEnabled == true && googleAnalytics != null) { try { googleAnalytics.LogEvent(new EventHitBuilder() .SetEventCategory(eventType.ToString()) .SetEventAction(actionTaken) .SetEventLabel(label) .SetEventValue(eventValue)); } catch (System.Exception exception) { //Debug.Log(exception); } } }