Answer the question
In order to leave comments, you need to log in
How to implement firebase for analytics in unity?
Unity plugin installed, google play console connected with firebase and firebase with google play console. I found that for initialization you need to write something like this:
void Start()
{
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
{
var app = FirebaseApp.DefaultInstance;
});
}
FirebaseAnalytics.LogEvent("level_begin",
new Parameter(FirebaseAnalytics.ParameterValue, type_game.ToString()),
new Parameter(FirebaseAnalytics.ParameterValue, difficult.ToString()),
new Parameter(FirebaseAnalytics.ParameterLevelName, name)
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question