analytics.UserDimensions class

Interface representing the user who triggered the events.

Signature:

exportdeclareclassUserDimensions

Constructors

ConstructorModifiersDescription
(constructor)(wireFormat)Constructs a new instance of theUserDimensions class

Properties

PropertyModifiersTypeDescription
appInfoAppInfoApp information.
bundleInfoExportBundleInfoInformation regarding the bundle in which these events were uploaded.
deviceInfoDeviceInfoDevice information.
firstOpenTimestringThe time (in UTC) at which the user first opened the app.
geoInfoGeoInfoUser's geographic information.
userIdstringThe user ID set via thesetUserId API. [Android](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#setUserId(java.lang.String)) [iOS](https://firebase.google.com/docs/reference/ios/firebaseanalytics/api/reference/Classes/FIRAnalytics#/c:objc(cs)FIRAnalytics(cm)setUserID)
userProperties{ [key: string]:UserPropertyValue; }A map of user properties set with the [setUserProperty](https://firebase.google.com/docs/analytics/android/properties) API.All values are [UserPropertyValue](providers_analytics_.userpropertyvalue) objects.

analytics.UserDimensions.(constructor)

Constructs a new instance of theUserDimensions class

Signature:

constructor(wireFormat:any);

Parameters

ParameterTypeDescription
wireFormatany

analytics.UserDimensions.appInfo

App information.

Signature:

appInfo?:AppInfo;

analytics.UserDimensions.bundleInfo

Information regarding the bundle in which these events were uploaded.

Signature:

bundleInfo:ExportBundleInfo;

analytics.UserDimensions.deviceInfo

Device information.

Signature:

deviceInfo:DeviceInfo;

analytics.UserDimensions.firstOpenTime

The time (in UTC) at which the user first opened the app.

Signature:

firstOpenTime?:string;

analytics.UserDimensions.geoInfo

User's geographic information.

Signature:

geoInfo:GeoInfo;

analytics.UserDimensions.userId

The user ID set via thesetUserId API. [Android](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#setUserId(java.lang.String)) [iOS](https://firebase.google.com/docs/reference/ios/firebaseanalytics/api/reference/Classes/FIRAnalytics#/c:objc(cs)FIRAnalytics(cm)setUserID)

Signature:

userId?:string;

analytics.UserDimensions.userProperties

A map of user properties set with the [setUserProperty](https://firebase.google.com/docs/analytics/android/properties) API.

All values are [UserPropertyValue](providers_analytics_.userpropertyvalue) objects.

Signature:

userProperties:{[key:string]:UserPropertyValue;};

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 2023-04-24 UTC.