Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Google Analytics for iOS Events not Showing in Dashboard

Discussion in 'Unity Analytics' started by jbassking, Feb 22, 2024.

  1. jbassking

    jbassking

    Joined:
    Feb 27, 2014
    Posts:
    118
    I implemented Analytics using the documentation as a guide. I can see the players in the real time dashboard but do not see any of the custom events. I only see the following:
    • user_engagement
    • screen_view
    • session_start
    • first_open
    Is there more to implementing it so the events show up?

    I also added the flag when building the XCode project to show in the Firebase DebugView, but the same events show.

    Code (CSharp):
    1.  
    2. FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
    3. {
    4.     var dependencyStatus = task.Result;
    5.     if (dependencyStatus == DependencyStatus.Available)
    6.     {
    7.         Debug.Log("FirebaseApp is available");
    8.         firebaseApp = FirebaseApp.DefaultInstance;
    9.         // where app is a Firebase.FirebaseApp property of your application class.
    10.         // Set a flag here indicating that Firebase is ready to use by your
    11.         // application.
    12.         Debug.Log("Calling SetAnalyticsCollectionEnabled(true)");
    13.         FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);
    14.  
    15.         // Firebase is ready for use
    16.         FirebaseAnalytics.LogEvent(FirebaseAnalytics.EventAppOpen); // Example event
    17.         Debug.Log("Logigng EventAppOpen");
    18.     }
    19.     else
    20.     {
    21.         Debug.LogError("Could not resolve all Firebase dependencies: " + dependencyStatus);
    22.     }
    23. });
    24.  
    Here's a couple of events I tried:

    Code (CSharp):
    1. FirebaseAnalytics.LogEvent(FirebaseAnalytics.EventEarnVirtualCurrency, FirebaseAnalytics.ParameterCurrency, 1);
    2. FirebaseAnalytics.LogEvent($"level_turn_{levelNumber}", new Parameter("turn", turnNumber));
     
  2. jbassking

    jbassking

    Joined:
    Feb 27, 2014
    Posts:
    118
    Here's a bunch of errors I see when running on iOS. I can't figure out how to resolve them though.

    objc[475]: Class FIRAAdExposureReporter is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9b00) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3b30). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAConditionalUserProperty is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9b50) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3b80). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAConditionalUserPropertyController is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9ba0) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3bd0). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAEvent is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9bf0) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3c20). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAIdentifiers is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9c40) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3c70). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAMeasurement is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9c68) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3c98). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAnalytics is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9cb8) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3ce8). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAnalyticsConnector is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9d08) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3d38). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAScreenViewReporter is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9d80) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3db0). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAUserAttribute is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9dd0) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3e00). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRAValue is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9e20) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3e50). One of the two will be used. Which one is undefined.
    objc[475]: Class FIRConnectorUtils is implemented in both /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/MyApp (0x104bf9e48) and /private/var/containers/Bundle/Application/14207F34-3777-4A1B-AA8E-EF9E6D5C9CE9/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework (0x110ed3e78). One of the two will be used. Which one is undefined.