getSessionUserId static method

Future<String?> getSessionUserId({
  1. required String tracker,
})

Returns the identifier (string UUIDv4) for the user of the session.

The tracker namespace is required but ignored on Web where all trackers share the same session.

Implementation

static Future<String?> getSessionUserId({required String tracker}) async {
  return await _channel
      .invokeMethod('getSessionUserId', {'tracker': tracker});
}