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

Frontend Application questions

Adi_10
Guide

1 – Unique (VIP) users for web application as user tagging with cookie or javascript ?

2 - Application Logic Issue (Response Status 400 & Error Message)

  • Can Dynatrace generate alerts and capture request logs related to this issue?
  • What is the best approach to discovering and diagnosing the root cause?
  1. Application Connectivity Issue (External Service - Google Fonts)
  • Can Dynatrace detect and provide alerts with detailed insights into this issue?
3 REPLIES 3

PierreGutierrez
Dynatrace Champion
Dynatrace Champion

Hi @Adi_10 
I hope I can help with what I understood from the questions 

1 – Unique (VIP) users for web application as user tagging with cookie or javascript ?

 

There are several ways to capture the UserTag depending on the website. They all complement each other, since the UserTag will ultimately be unique, and you can implement different configurations to capture the UserTag without any problem (I believe a maximum of 20 configurations).

 

PierreGutierrez_0-1746541120821.png

 

Spoiler
The fastest and most common are the CCS Selector, JavaScript variable, and the Server-side Request attribute, in my experience.

More information :  https://docs.dynatrace.com/docs/shortlink/user-tagging

 

If you want to implement "VIP User" , I Recommend you use User properties in the User Session

2 - Application Logic Issue (Response Status 400 & Error Message)

  • Can Dynatrace generate alerts and capture request logs related to this issue?

    ANS : Yes Dynatrace Can Do that.

    From the FrontEnd:
    Since you have control over the logging code, you could send a Report Error to the application with the information from the "Error Message" log when 4XX cases occur and associate it with a UserAction.

    By default, Report Errors affect the appendix, which will generate an alert.

    However, you can also exploit the Report Error value from USQL to display it in Dashboards and/or consider creating a metric and then an alert.

    Front the BackEnd: 

    You can ingest all or just the cases with some 4xx details from the Dynatrace log, and then structure or enhance the information with DQL.

    Finally, create an alert for this log information (event extraction from OpenPipeline or Settings/Log Monitoring/Events extraction).

    More Information: https://docs.dynatrace.com/docs/shortlink/log-management-and-analytics 

 

  • What is the best approach to discovering and diagnosing the root cause?

    ANS :  For Dynatrace, the best thing you can do to get to the root cause is to increase observability in your IT center.

    This means installing OneAgent, extensions, logs, application monitoring (frontend), setting up custom alerts, extensions, etc. The more you monitor with Dynatrace, the more information it will have to automatically identify the root cause.

  1. Application Connectivity Issue (External Service - Google Fonts)
  • Can Dynatrace detect and provide alerts with detailed insights into this issue?

    ANS : 

    From the FrontEnd:
    If you have already instrumented the application, Dynatrace will detect the "Web Request" to that "Google" provider and can provide you with relevant information if any endpoint calling that provider experiences issues.

    From the BackEnd:
    Dynatrace captures the traffic of your application's calls to this external service, providing response times, errors, and volumetrics in a Full Stack monitoring. If those calls to this destination fail, Dynatrace will detect it by default, or you can create a Metric Event if you require further customization.

    I hope its helpful 💪
Pierre Gutierrez - LATAM ACE Consultant - Loving Cats! Loving Technology !

Hi @PierreGutierrez , 

i have recently added CSS selector and it's working perfectly fine with getting user by user mail id.

 

Also, many of my application do not show username or mail id after login to application, 

They only show user profile Icon for logout.

For this case I am going to need JavaScript variable, and the Server-side Request attribute

 

Could you please enlighten on this?

Thank u so much 🙂

PierreGutierrez
Dynatrace Champion
Dynatrace Champion

Hi @Adi_10 

Great! I'm glad it's working for you now.

Dynatrace has the ability to capture the UserID at different points in the application and in different ways for the scenario you mention.

Answering your questions:
Javascript : 

PierreGutierrez_0-1746738120386.png

1. Identify the variable or code in the JavaScript where the userTag is located. (Example: currentUser.tag)
2. Configure "currentUser.tag" in Dynatrace

Dynatrace will evaluate this variable in the context of the user's browser. When it detects that currentUser.id has a defined value, it will automatically assign it as the session's User Tag.

Server-side Request attribute
Dynatrace will use a Request Attribute to define the UserTag. This means that a value captured from the Backend (Service) will be used as the UserTag.

1. Configure a Request Attribute (Make sure it has one of the "Server-side" options).


PierreGutierrez_1-1746738462676.png

2. Once this is done, the Request Attribute option will appear in the User Tag section of the Web Application.

More Information: https://docs.dynatrace.com/docs/shortlink/user-tagging#add-a-user-tag-rule 

PierreGutierrez_2-1746738640098.png

 

I hope it's helpful 💪

Pierre Gutierrez - LATAM ACE Consultant - Loving Cats! Loving Technology !

Featured Posts