예제 #1
0
 public void LogEvent(gaEventCategories eventType, string actionTaken, string label)
 {
     if (isAnalyticsEnabled && googleAnalytics != null)
     {
         LogEvent(eventType, actionTaken, label, 0);
     }
 }
예제 #2
0
 public void LogEvent(gaEventCategories eventType, string actionTaken, string label)
 {
     if (isAnalyticsEnabled && googleAnalytics != null)
     {
         LogEvent(eventType, actionTaken, label, 0);
     }
 }
예제 #3
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));
     }
 }
예제 #4
0
 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);
         }
     }
 }