public static void Log(string eventName, string action, string label) { #if !DEBUG StoreCustomEventLogger.Log(eventName + " : " + action + " : " + label); GoogleAnalyticsTracker.Send(HitBuilder.CreateCustomEvent(eventName, action, label).Build()); #endif logger.Info($"Analytics event '{eventName} : {action} : {label}' fired."); }
public static void Log(string eventName, string action) { #if !DEBUG StoreCustomEventLogger.Log(eventName + " : " + action); GoogleAnalyticsTracker.Send(HitBuilder.CreateCustomEvent(eventName, action).Build()); #endif Analytics.TrackEvent(eventName, new Dictionary <string, string>() { { "action", action }, }); logger.Info($"Analytics event '{eventName} : {action}' fired."); }