Zum Inhalt springen

@capgo/capacitor-firebase-analytics

Capacitor plugin for Firebase Analytics.

Capacitor plugin for Firebase Analytics.

  • getAppInstanceId - Retrieves the app instance id.
  • getSessionId - Retrieves the current session id (ga_session_id).
  • setConsent - Sets the user’s consent mode.
  • setUserId - Sets the user ID property.
MethodDescription
getAppInstanceIdRetrieves the app instance id.
getSessionIdRetrieves the current session id (ga_session_id).
setConsentSets the user’s consent mode.
setUserIdSets the user ID property.
setUserPropertySets a custom user property to a given value.
setCurrentScreenSets the current screen name.
logEventLogs an app event.
setSessionTimeoutDurationSets the duration of inactivity that terminates the current session.
setEnabledEnables/disables automatic data collection. The value does not apply until the next run of the app.
isEnabledReturns whether or not automatic data collection is enabled.
resetAnalyticsDataClears all analytics data for this app from the device. Resets the app instance id.
initiateOnDeviceConversionMeasurementWithEmailAddressInitiates on-device conversion measurement with an email address.
initiateOnDeviceConversionMeasurementWithPhoneNumberInitiates on-device conversion measurement with a phone number.
initiateOnDeviceConversionMeasurementWithHashedEmailAddressInitiates on-device conversion measurement with a hashed email address.
initiateOnDeviceConversionMeasurementWithHashedPhoneNumberInitiates on-device conversion measurement with a hashed phone number.
getPluginVersionGet the version of this plugin.

This reference is synced from src/definitions.ts in capacitor-firebase.