IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you
migrate your app to use KTX APIs from the main modules instead. For details, see the
FAQ about this initiative.
Stay organized with collections
Save and categorize content based on your preferences.
Contains public API classes for Firebase Analytics.
Classes
Enums
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[null,null,["Last updated 2025-07-21 UTC."],[],[],null,["# com.google.firebase.analytics\n=============================\n\nContains public API classes for Firebase Analytics.\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AnalyticsKt](/docs/reference/android/com/google/firebase/analytics/AnalyticsKt) | |\n| [ConsentBuilder](/docs/reference/android/com/google/firebase/analytics/ConsentBuilder) | Helper class used to enable fluent syntax in [setConsent](/docs/reference/android/com/google/firebase/analytics/package-summary#(com.google.firebase.analytics.FirebaseAnalytics).setConsent(kotlin.Function1)). |\n| [FirebaseAnalytics](/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics) | The top level Firebase Analytics singleton that provides methods for logging events and setting user properties. |\n| [FirebaseAnalytics.Event](/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event) | An Event is an important occurrence in your app that you want to measure. |\n| [FirebaseAnalytics.Param](/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Param) | Params supply information that contextualize Events. |\n| [FirebaseAnalytics.UserProperty](/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.UserProperty) | A UserProperty is an attribute that describes the app-user. |\n| [GoogleAnalyticsServerPreviewActivity](/docs/reference/android/com/google/firebase/analytics/GoogleAnalyticsServerPreviewActivity) | An [Activity](https://developer.android.com/reference/android/app/Activity.html) to preview or stop previewing a server-side Google Tag Manager container. |\n| [ParametersBuilder](/docs/reference/android/com/google/firebase/analytics/ParametersBuilder) | Helper class used to enable fluent syntax in [logEvent](/docs/reference/android/com/google/firebase/analytics/package-summary#(com.google.firebase.analytics.FirebaseAnalytics).logEvent(kotlin.String,kotlin.Function1)). |\n\nEnums\n-----\n\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------|\n| [FirebaseAnalytics.ConsentStatus](/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.ConsentStatus) | The status value of the consent type. |\n| [FirebaseAnalytics.ConsentType](/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.ConsentType) | The type of consent to set. |"]]