trackConversion static method
Tracks the conversion of the user for any particular campaign.
goalIdentifier
is the goal for which the user is to be tracked
revenueValue
should be passed if the goalType is revenue.
refer developer docs for more info.
Implementation
static Future<void> trackConversion(String goalIdentifier,
{double? revenueValue}) async {
try {
Map<String, dynamic> arguments = <String, dynamic>{
"goalIdentifier": goalIdentifier,
};
if (revenueValue != null) {
arguments['revenueValue'] = revenueValue;
}
await _channel.invokeMethod('trackConversion', arguments);
} catch (e) {
print(e);
return null;
}
}