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

Custom User Action Not working elementIdentifier


Hi all,


I need help to troubleshoot why Custom User Action Not working for {elementIdentifier (default)}

Here are my steps:

  1. I've added the  data-dtname
    <input data-dtname="Firstname Text Input" type="text" value="firstname" name="firstname" title="Firstname" id="txtFirstname" />
  2. Added naming rule for Custom Actions 
    {customActionName (default)} on {elementIdentifier (default)}
    Conditions, {elementIdentifier (default)} contains Firstname


But unable to be captured.  Thank you.





DynaMight Legend
DynaMight Legend

Custom actions are action which are created using the JavaScript RUM API with enterAction / leaveAction methods. Dynatrace can automatically capture only user actions (Load or XHR) which trigger a network call. The data-dtname has also effect only on the automatically captured actions (Load or XHR).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hi Julius_Loman,

Thanks so much for your answer.

It means the data-dtname is only for Load and XHR.

What happens if there are multiple data-dtname in one page?




For Load and Xhr actions Dynatrace takes data-dtname attribute on the element the user interacts with. However you might want to use the uanpi custom parameter also for DOM traversal with the limit of parent elements which Dynatrace will look at. Just use a reasonable value such as uanpi=5 to traverse up to 5 parent elements to look for the data-dtname attribute (or a custom name).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

DynaMight Champion
DynaMight Champion

Hello, Abner.

You need to use another tab (Load actions/XHR actions) instead Custom Actions.

Applications > App_Name > Settings > User actions (in Capturing)



"Custom Actions" tab is only about instrumented actions with JS API (dtrum)



Alex Romanenkov   


Hi Romanenkov_Al3x,

I actually tried it with dtrum using enteraction and leaveaction on my button.

Mr. Julius Loman said, it's only for Load and XHR.

Correct me if I'm wrong but , that I cannot use the Custom with the elementIdentifier?




No, you can't - because it's not sent, custom action sent instead. So no data for this placeholder.
But you can change your custom action name pattern if want to have a similar view to OOB actions.

No, custom actions use the name sent using the enterAction method. data-dtname is only for the automatically generated actions (load/xhr).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts