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

This product reached the end of support date on March 31, 2021.

User visit tagging from database query arguments.

akshay_shinde2
Inactive

Hi,

I want to tag user visit. I can see the username in argument of one of the SQL query.

I tried to create measure based on Method - Return value but its not giving me desired result.

Can somebody please help here.

BR,

AK

3 REPLIES 3

kyle_kowalski
Dynatrace Pro
Dynatrace Pro

I don't believe you can use a SQL statement for UEM tagging. I would look at the method that is creating that statement and see if you can pull an arg or return from there. Remember we can run accessors on those values so if you have a User class you could run a .getUsername() on that.

Hi Kyle,

Can you help me to get argument value from "PHP Execution" method? Screenshot of purepath is attached.

purepath.jpg

BR,

AK

Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

In addition to what Kyle said, another great place to look for the user string is in data coming back from the browser. Request Parameter, Session Variable, etc. I sometimes put wildcards in for all these fields, examine the results and see about where the username string might be conveniently acquired. Just remember to remove the wildcards and explicitly capture only the values you need.