How to identify users in my Flutter app with Dynatrace?

Hello, community.

I have a mobile banking application developed in Flutter, and I have already instrumented it following the official Dynatrace guide. However, when I check the data in Dynatrace, all users appear as “anonymous,” and I can’t see their names or any unique identifier.

I would like to know the steps to make Dynatrace display user names or some kind of ID in my application. I have reviewed the documentation, but it’s not entirely clear to me how to configure it correctly.

I would really appreciate it if someone could explain it step by step or share a practical example.

Thanks in advance!

Identify a user 

You can identify a user and tag the current

Documentation Flutter Plugin:dynatrace_flutter_plugin | Flutter package

Basically you need to find the variable that you store your client name or identification and use inside the “()”

like this:

import ‘package:webview_flutter/webview_flutter.dart’;

WebViewController webViewController = WebViewController();

String userName = “JohnDoe”; // take this from your authentication logic

webViewController.runJavaScript(
‘Dynatrace().identifyUser(“$userName”);’
);

let me know if works