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).
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.
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).
Perfect! Worked like a charm. Are there any attributes we can use to potentially let dynatrace know about a load action? As I understand the data-dtname only works on inputs or clickable items?
You can change the attribute name and you can use multiple attributes instead of just data-dtname.
If user does not interact with an elemenent - e.g. enters the URL directly in browser or load action happens automatically (redirect?), then you must use either user action naming rule for the Load actions or you must use the dtrum API - actionName to set the name.