06 Mar 2025 03:28 PM
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!
07 Mar 2025 01:35 AM - edited 07 Mar 2025 06:19 PM
You can identify a user and tag the current
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