Importing attributions on Flutter

To set up integration, call the attribution retrieval method on the client, then call the attribution sending method AppMetrica.ReportExternalAttribution.

AppsFlyer

Set up the sending of attribution data in the AppMetrica SDK for AppsFlyer:

AppsFlyerOptions appsFlyerOptions = AppsFlyerOptions(
  afDevKey: "afDevKey",
);
AppsflyerSdk appsflyerSdk = AppsflyerSdk(appsFlyerOptions);
appsflyerSdk.onInstallConversionData((appsFlyerAttribution){
  AppMetrica.reportExternalAttribution(AppMetricaExternalAttribution.appsflyer(appsFlyerAttribution));
});
appsflyerSdk.initSdk(
  registerConversionDataCallback: true
);

Adjust

Set up the sending of attribution data in the AppMetrica SDK for Adjust:

AdjustConfig adjustConfig = AdjustConfig("", AdjustEnvironment.sandbox);
adjustConfig.attributionCallback = (AdjustAttribution adjustAttribution) {
  AppMetrica.reportExternalAttribution(AppMetricaExternalAttribution.adjust(adjustAttribution));
};
Adjust.start(adjustConfig);

For more information about attribution tracking methods, see the Adjust documentation.

Kochava

Set up the sending of attribution data in the AppMetrica SDK for Kochava:

KochavaTracker.instance.registerAndroidAppGuid("");
KochavaTracker.instance.retrieveInstallAttribution().then((kochavaAttribution) =>
  AppMetrica.reportExternalAttribution(AppMetricaExternalAttribution.kochava(kochavaAttribution))
);
KochavaTracker.instance.start();

For more information about attribution tracking methods, see the Kochava documentation.

Tenjin

Set up the sending of attribution data in the AppMetrica SDK for Tenjin:

TenjinSDK.instance.getAttributionInfo().then((tenjinAttribution) =>
  AppMetrica.reportExternalAttribution(AppMetricaExternalAttribution.tenjin(tenjinAttribution))
);

Airbridge

Set up the sending of attribution data in the AppMetrica SDK for Airbridge:

Airbridge.attribution.setAttributionListener((airbridgeAttribution) {
  AppMetrica.reportExternalAttribution(AppMetricaExternalAttribution.airbridge(airbridgeAttribution));
});

For more information about attribution tracking methods, see the Airbridge documentation.

Singular

Set up the sending of attribution data in the AppMetrica SDK for Singular:

SingularConfig singularConfig = SingularConfig("", "");
singularConfig.deviceAttributionCallback = (Map<String, dynamic> singularAttribution) {
  AppMetrica.reportExternalAttribution(AppMetricaExternalAttribution.singular(singularAttribution));
};
Singular.start(singularConfig);

For more information about attribution tracking methods, see the Singular documentation.

If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

Contact support