Passing AnalyticsEvents between functions

Hi all

I have a main function that sends analytics events after checking whethet the app is running in the editor, whether the user has opted out etc etc.

However, whilst I can pass an AnalyticsEvent to the function, I can’t see how to action that event. Any ideas?

So I want to do something like this:

doAnalytics(analyticsevent.gameover)

public bool doAnalytics(analyticsevent tempevent)
{
// do checks here
analyticsresult result = tempevent;
}

Any ideas how I can make that work?

Olly

Analytics events are not programmatic events to be sent between functions. They are sent from your code, directly to our back end servers to track user progress https://docs.unity3d.com/Manual/UnityAnalyticsCustomEventScripting.html