cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to identify users in my Flutter app with Dynatrace?

Nicky2311
Participant

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!

1 REPLY 1

natanael_mendes
Champion

Identify a user 

You can identify a user and tag the current

natanael_mendes_0-1741310889670.png

Documentation Flutter Plugin:https://pub.dev/packages/dynatrace_flutter_plugin

 

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

 

Dynatrace Professional Certified

Featured Posts