Skip to content

@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.

Keep going from @capgo/capacitor-firebase-analytics

Section titled “Keep going from @capgo/capacitor-firebase-analytics”

If you are using @capgo/capacitor-firebase-analytics to plan native plugin work, connect it with Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives, and Capgo Native Builds for the product workflow in Capgo Native Builds.