Skip to content

@capgo/capacitor-facebook-analytics

Meta/Facebook App Events analytics with standard events, purchase logging, currency parameters, and advertiser tracking controls

Meta/Facebook App Events analytics with standard events, purchase logging, currency parameters, and advertiser tracking controls

Start with initAppEvents() and the other core methods listed below.

PlatformSupportNotes
iOSYesNative
AndroidYesNative
WebNoGuard with Capacitor.getPlatform()
  • initAppEvents - Activate Facebook App Events manually when automatic app event logging is disabled.
  • logEvent - Log standard or custom App Events with optional parameters, value, and currency.
  • logPurchase - Log purchase events with amount, currency, and optional parameters.
  • enableAdvertiserTracking - Enable advertiser ID collection where the native SDK still supports explicit toggling.
  • disableAdvertiserTracking - Disable advertiser ID collection where the native SDK still supports explicit toggling.
  • getAdvertiserTrackingStatus - Read the current advertiser tracking status.
PlatformSupport
iOSSupported
AndroidSupported
WebUnsupported stub
MethodDescription
initAppEventsActivate Facebook App Events.
logEventLog a Facebook App Event.
logPurchaseLog a Facebook purchase event.
enableAdvertiserTrackingEnable advertiser tracking.
disableAdvertiserTrackingDisable advertiser tracking.
getAdvertiserTrackingStatusGet the current advertiser tracking status.
getPluginVersionReturn the native plugin version marker.

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

Keep going from @capgo/capacitor-facebook-analytics

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

If you are using @capgo/capacitor-facebook-analytics to plan native plugin work, connect it with Using @capgo/capacitor-facebook-analytics for the native capability in Using @capgo/capacitor-facebook-analytics, 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, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.