- Home /
Strange Custom Events Issue
Hi,
I'm using Unity 5.60b3 I've been trying to implement Unity Analytics in my game for a couple of days now but having inconsistent results. An example of how I am doing this is:
Analytics.CustomEvent("inGameCurrencySpent", new Dictionary { { "coins", cSpent}, { "orbs", oSpent } });
The validation of the Custom Events is the issue. The results are always inconsistent. Sometimes they show up (Services Tab > Validator and Validation section from the dashboard) and sometimes they don't. The "appStart" and "appRunning" events also show up sporadically. Sometimes they show up and if I am lucky I can manage to validate one or two Custom Events. The annoying part is that since I'm getting an "Ok" I only get to try validating events 100 times before having to wait an hour. I have noticed that if I restart Unity it will SOMETIMES work for a while.
Recap: Create a button to call:
public void CurrencySpent(){ Analytics.CustomEvent("inGameCurrencySpent", new Dictionary { { "coins", cSpent}, { "orbs", oSpent } }); Debug.Log(Analytics.CustomEvent("inGameCurrencySpent"); }
Navigate to the Validator from the services tab. Play the game from the editor. Sometimes the appStart event will show up and sometimes the appStart AND the appRunning will show up and sometimes none of them will show up. Click the button to call the Custom Event. Get the "Ok" in the console. Sometimes it will show up and other times it won't. (Seems to coincide with the appStart and appRunning showing up)
Any ideas? As of now I'm literally spending hours just randomly trying to fire off the Custom Events until they show up and like I said earlier, it's really time-consuming because of the 100 event cap. :(