Skip to content

@capgo/capacitor-facebook-analytics

Log Meta/Facebook App Events, purchases, value-bearing standard events, and advertiser tracking status from Capacitor.

@capgo/capacitor-facebook-analytics wraps Meta App Events for Capacitor apps on iOS and Android.

Use it to log standard Facebook events, custom events, purchases, and value-bearing events with currency metadata. It also exposes advertiser tracking controls for Android and legacy iOS, while reporting App Tracking Transparency authorization on iOS 17 and above.

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