identify method

  1. @override
Future<RawEvent?> identify(
  1. IdentifyEvent event
)
override

Implementation

@override
identify(event) async {
  final userId = event.userId;
  if (userId != null && userId.isNotEmpty) {
    Adjust.addGlobalPartnerParameter('user_id', userId);
  }

  final anonId = event.anonymousId;
  if (anonId != null && anonId.isNotEmpty) {
    Adjust.addGlobalPartnerParameter('anonymous_id', anonId);
  }
  return event;
}