attribute method

Future<Map<String, dynamic>?> attribute({
  1. String type = 'install',
  2. String? clickId,
  3. String? slug,
  4. String? name,
  5. String? platform,
  6. Map<String, Object?>? properties,
})

Report a conversion. Pass clickId (from the link) for deterministic attribution, or slug when the app was opened by the short link itself; otherwise the server matches by fingerprint. Returns the matched link's deep-link data (or null if unattributed).

Implementation

Future<Map<String, dynamic>?> attribute({
  String type = 'install',
  String? clickId,
  String? slug,
  String? name,
  String? platform,
  Map<String, Object?>? properties,
}) async {
  final res = await _attributeRaw(
    type: type,
    clickId: clickId,
    slug: slug,
    name: name,
    platform: platform,
    properties: properties,
  );
  return res?['link'] as Map<String, dynamic>?;
}