The user ID set via the setUserId 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)
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 the UserDimensions class
Signature:
constructor(wireFormat:any);
Parameters
Parameter
Type
Description
wireFormat
any
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 the setUserId 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-24 UTC."],[],[],null,["# analytics.UserDimensions class\n\nInterface representing the user who triggered the events.\n\n**Signature:** \n\n export declare class UserDimensions \n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|------------------------------------------------------------------------------------------------------------------|-----------|---------------------------------------------------------|\n| [(constructor)(wireFormat)](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsconstructor) | | Constructs a new instance of the `UserDimensions` class |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|----------------------------------------------------------------------------------------------------------|-----------|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [appInfo](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsappinfo) | | [AppInfo](./firebase-functions.analytics.appinfo.md#analyticsappinfo_interface) | App information. |\n| [bundleInfo](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsbundleinfo) | | [ExportBundleInfo](./firebase-functions.analytics.exportbundleinfo.md#analyticsexportbundleinfo_class) | Information regarding the bundle in which these events were uploaded. |\n| [deviceInfo](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsdeviceinfo) | | [DeviceInfo](./firebase-functions.analytics.deviceinfo.md#analyticsdeviceinfo_interface) | Device information. |\n| [firstOpenTime](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsfirstopentime) | | string | The time (in UTC) at which the user first opened the app. |\n| [geoInfo](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsgeoinfo) | | [GeoInfo](./firebase-functions.analytics.geoinfo.md#analyticsgeoinfo_interface) | User's geographic information. |\n| [userId](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsuserid) | | string | The user ID set via the `setUserId` 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) |\n| [userProperties](./firebase-functions.analytics.userdimensions.md#analyticsuserdimensionsuserproperties) | | { \\[key: string\\]: [UserPropertyValue](./firebase-functions.analytics.userpropertyvalue.md#analyticsuserpropertyvalue_class); } | 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. |\n\nanalytics.UserDimensions.(constructor)\n--------------------------------------\n\nConstructs a new instance of the `UserDimensions` class\n\n**Signature:** \n\n constructor(wireFormat: any);\n\n### Parameters\n\n| Parameter | Type | Description |\n|------------|------|-------------|\n| wireFormat | any | |\n\nanalytics.UserDimensions.appInfo\n--------------------------------\n\nApp information.\n\n**Signature:** \n\n appInfo?: AppInfo;\n\nanalytics.UserDimensions.bundleInfo\n-----------------------------------\n\nInformation regarding the bundle in which these events were uploaded.\n\n**Signature:** \n\n bundleInfo: ExportBundleInfo;\n\nanalytics.UserDimensions.deviceInfo\n-----------------------------------\n\nDevice information.\n\n**Signature:** \n\n deviceInfo: DeviceInfo;\n\nanalytics.UserDimensions.firstOpenTime\n--------------------------------------\n\nThe time (in UTC) at which the user first opened the app.\n\n**Signature:** \n\n firstOpenTime?: string;\n\nanalytics.UserDimensions.geoInfo\n--------------------------------\n\nUser's geographic information.\n\n**Signature:** \n\n geoInfo: GeoInfo;\n\nanalytics.UserDimensions.userId\n-------------------------------\n\nThe user ID set via the `setUserId` 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)\n\n**Signature:** \n\n userId?: string;\n\nanalytics.UserDimensions.userProperties\n---------------------------------------\n\nA map of user properties set with the \\[`setUserProperty`\\](https://firebase.google.com/docs/analytics/android/properties) API.\n\nAll values are \\[`UserPropertyValue`\\](providers_analytics_.userpropertyvalue) objects.\n\n**Signature:** \n\n userProperties: {\n [key: string]: UserPropertyValue;\n };"]]