com.google.firebase.analytics

Contains public API classes for Firebase Analytics.

Classes

AnalyticsKt
ConsentBuilder

Helper class used to enable fluent syntax insetConsent.

FirebaseAnalytics

The top level Firebase Analytics singleton that provides methods for logging events and setting user properties.

FirebaseAnalytics.Event

An Event is an important occurrence in your app that you want to measure.

FirebaseAnalytics.Param

Params supply information that contextualize Events.

FirebaseAnalytics.UserProperty

A UserProperty is an attribute that describes the app-user.

GoogleAnalyticsServerPreviewActivity

AnActivity to preview or stop previewing a server-side Google Tag Manager container.

ParametersBuilder

Helper class used to enable fluent syntax inlogEvent.

Enums

FirebaseAnalytics.ConsentStatus

The status value of the consent type.

FirebaseAnalytics.ConsentType

The type of consent to set.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.