private void ResetSession() { // renew session id SessionId = Guid.NewGuid().ToString(); // reset session length counter SessionLength = 0; VoodooLog.Log(TAG, "New session id: " + SessionId); }
internal static void TrackEvent(string eventName) { if (!_isInitialized) { _eventsQueue.Enqueue(eventName); return; } VoodooLog.Log(TAG, "Sending event " + eventName + " to Tenjin"); GetInstance().SendEvent(eventName); }
internal static void LogBuildError(BuildErrorConfig.ErrorID errorID) { if (BuildErrorConfig.ErrorMessageDict.ContainsKey(errorID)) { LogBuildError( errorID, BuildErrorConfig.ErrorMessageDict[errorID]); } else { VoodooLog.LogW(TAG, "Warning nonexistent ErrorID"); } }
internal static bool Initialize(bool consent) { if (!consent) { Disable(); return(_isInitialized); } InstantiateGameAnalytics(); VoodooLog.Log(TAG, "GameAnalytics initialized, tracking pending events: " + QueuedEvents.Count); while (QueuedEvents.Count > 0) { QueuedEvents.Dequeue().Track(); } _isInitialized = true; return(_isInitialized); }
internal static void TrackDesignEvent(string eventName, float?eventValue) { if (_isDisabled) { return; } var designEvent = new DesignEvent { eventName = eventName, eventValue = eventValue }; if (!_isInitialized) { VoodooLog.Log(TAG, "GameAnalytics NOT initialized queuing event..." + eventName); QueuedEvents.Enqueue(designEvent); } else { VoodooLog.Log(TAG, "Sending event " + eventName + " to GameAnalytics"); designEvent.Track(); } }
internal static void TrackProgressEvent(GAProgressionStatus status, string progress, int?score) { if (_isDisabled) { return; } var progressEvent = new ProgressEvent { status = status, progress = progress, score = score }; if (!_isInitialized) { VoodooLog.Log(TAG, "GameAnalytics NOT initialized queuing event..." + status); QueuedEvents.Enqueue(progressEvent); } else { VoodooLog.Log(TAG, "Sending event " + status + " to GameAnalytics"); progressEvent.Track(); } }
public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate) { VoodooLog.Log(TAG, "Sending DebugTenjin::GetDeeplink"); }
public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature) { VoodooLog.Log(TAG, "Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + transactionId + ", " + receipt + ", " + signature); }
public override void SendEvent(string eventName, string eventValue) { VoodooLog.Log(TAG, "Sending Event " + eventName + " : " + eventValue); }
public override void Init(string apiKey, string sharedSecret) { VoodooLog.Log(TAG, "Initializing with secret " + apiKey); ApiKey = apiKey; SharedSecret = sharedSecret; }
public override void Init(string apiKey) { VoodooLog.Log(TAG, "Initializing " + apiKey); ApiKey = apiKey; }
public override void OptOutParams(List <string> parameters) { VoodooLog.Log(TAG, "OptOutParams"); }
private static void Disable() { VoodooLog.Log(TAG, "Disabling GameAnalytics No User Consent."); _isDisabled = true; QueuedEvents.Clear(); }
private void IncrementSessionCount() { SessionCount = PlayerPrefs.GetInt(PlayerPrefSessionCountKey, 0) + 1; PlayerPrefs.SetInt(PlayerPrefSessionCountKey, SessionCount); VoodooLog.Log(TAG, "Session count incremented to: " + SessionCount); }
public override void OptIn() { VoodooLog.Log(TAG, "OptIn "); }
public override void OptOut() { VoodooLog.Log(TAG, "OptOut "); }
public override void Connect() { VoodooLog.Log(TAG, "Connecting " + ApiKey); }
public override void AppendAppSubversion(int subversion) { VoodooLog.Log(TAG, "AppendAppSubversion: " + subversion); }
public override void Connect(string deferredDeeplink) { VoodooLog.Log(TAG, "Connecting with deferredDeeplink " + deferredDeeplink); }