- 
                Notifications
    You must be signed in to change notification settings 
- Fork 51
Open
Labels
Description
Description
Please add support in the Unity Firebase SDK for obtaining a FirebaseAnalytics instance tied to a specific FirebaseApp, similar to other modules like FirebaseAuth.GetAuth(app) and FirebaseRemoteConfig.GetInstance(app).
API Proposal
namespace Firebase.Analytics
{
    public class FirebaseAnalytics
    {
        /// Returns the FirebaseAnalytics instance for the given FirebaseApp.
        public static FirebaseAnalytics GetAnalytics(FirebaseApp app);
        
        /// Logs an event to Firebase Analytics.
        public void LogEvent(string name);
        
        /// Static method to use the default app instance
        public static void LogEvent(string name, Parameter[] parameters);
    }
}Usage:
FirebaseApp customApp = FirebaseApp.Create(new AppOptions() { /* ... */ }, "CustomApp");
FirebaseAnalytics analytics = FirebaseAnalytics.GetAnalytics(customApp);
analytics.LogEvent("custom_event");Firebase Product(s)
Analytics
Targeted Platform(s)
All platforms