Get access to the powerful yet simple subscription analytics:

  • Conversion from install to paying user, MRR, LTV, churn and other metrics.
  • Feed the advertising and analytics tools you are already using with the data on high-value users to improve your ads targeting and marketing ROAS.

Pub

Installation

To use Qonversion in your Flutter app, add qonversion as a dependency in your pubspec.yaml file:

dependencies:
  qonversion_flutter: ^1.1.1

Run flutter pub get to install dependency.

Usage

Setup

You need to configure Qonversion once at a starting point of your app.

For example, launch Qonversion in initState of your top level widget:

...
import 'package:qonversion_flutter/qonversion.dart';

...

String _qonversionUserId;

@override
void initState() {
  super.initState();
  
  _launchQonversion();
}

Future<String> _launchQonversion() async {
  _qonversionUserId = await Qonversion.launch('YOUR_API_KEY');
}

...

You can also specify your client side userId (instead of Qonversion user-id) that will be used for matching data in the third party data:

final userId = 'CLIENT_SIDE_USER_ID';
Qonversion.launch(
  'YOUR_API_KEY',
  userId: userId,
);

Purchase tracking

Android

On Android you must call Qonversion.manualTrackPurchase(skuDetails, purchase) method on each purchase success in order to track purchases. If you're not using official in_app_purchase plugin, you can use fallback method trackPurchase and pass it correct SkuDetails and ProductDetails Maps.

iOS

On iOS Qonversion will track purchases automatically.

Attribution

You need to have AppsFlyer SDK integrated in your app before starting with this integration. If you do not have Appsflyer integration yet, please use this docs.

On iOS you can also use Branch integration.

Use addAttributionData(data, provider, userId) method to pass attribution data dictionary:

Qonversion.addAttributionData(
  data, 
  QAttributionProvider.appsFlyer,
  'USER_ID',
)

License

Qonversion SDK is available under the MIT license.

Libraries

qonversion
qonversion_flutter