analytics_hub_appsflyer 0.6.0 copy "analytics_hub_appsflyer: ^0.6.0" to clipboard
analytics_hub_appsflyer: ^0.6.0 copied to clipboard

Appsflyer provider for analytics_hub. Forwards LogEvent events to Appsflyer via the official SDK.

Analytics Hub Appsflyer Provider #

Dart Part of

Part of the analytics_hub workspace. New here? Start with the root README.

Ukrainian version: README.ua.md

analytics_hub_appsflyer connects analytics_hub to Appsflyer.

Current scope is log-only: this package maps LogEvent to AppsFlyerSdk.logEvent. It uses the core EventResolver contract with ResolvedEvent payload.

Installation #

dependencies:
  analytics_hub: ^0.5.0
  analytics_hub_appsflyer: ^0.6.0
  appsflyer_sdk: ^7.0.0

Usage #

final sdk = AppsFlyerSdk.instance;

await sdk.init(devKey: 'YOUR_DEV_KEY', appId: 'YOUR_APP_ID');

// SDK 7: init no longer sends a session — start once per readiness event.
await sdk.registerSessionReadyListener(sdk.start);

final hub = AnalyticsHub(
  providers: [
    AppsflyerAnalyticsHubProvider(appsFlyerSdk: sdk),
  ],
);

await hub.sendEvent(const SignupEvent('email'));

Event example:

class SignupEvent extends LogEvent {
  const SignupEvent(this.method) : super('sign_up');

  final String method;

  @override
  Map<String, Object?> get properties => {'method': method};

  @override
  List<EventProvider> get providers => const [
        EventProvider(AppsflyerAnalyticsHubIdentifier()),
      ];
}

Notes #

  • Customer user ID management is handled by the app directly via AppsFlyerSdk.setCustomerUserId.
0
likes
160
points
176
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Appsflyer provider for analytics_hub. Forwards LogEvent events to Appsflyer via the official SDK.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

analytics_hub, appsflyer_sdk

More

Packages that depend on analytics_hub_appsflyer