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

Hybrid user actions spanning web and native part

DynaMight Legend
DynaMight Legend

Has anyone been successful with tracking hybrid user actions? By hybrid action, I mean a user action starting in a web application resulting in a deep link captured by the native part of the application. Conceptually it's a single user interaction - the user performs a single click on a web application and ends in the native mobile application.

The situation is as follows:

  1. Web part is opened in a Webview and the webview represents the login page similar to the one below.


  2. The login page is a web application, with Dynaatrace RUM JavaScript injected.
  3. After the user clicks Login and the entered credentials are valid, the web application performs a HTTP POST and  the in HTTP response then redirects the user to a deeplink handled by the mobile application - such as myapp://login?auth=authcode

    This is not being tracked in any way by the RUM JS, since the actions itself does not end on a web page. Reception of the deeplink by the mobile app is represented as a mobile lifecycle action in the user session.

  4. If the entered credentials are invalid, the user stays on the web page. This is successfully captured by RUM JavaScript as it's the same web application.

The only method right now is to create mobile action manually as soon as the deep link is processed by the native part or overriding the automatically detected action. This is however missing the overall customer experience as the timing of the web request is not captured. OneAgent does not allow creating custom action start times when creating actions

Has anyone been successful with a better capturing of the hybrid user actions?

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

Dynatrace Champion
Dynatrace Champion

I currently do not see a way to create such a cross-technology spanning user action.
Assuming creating mobile user actions with backdated start time would be available, how would the start time of the web part be passed over to the mobile agent in case of the deep link being called?
Creating a cross-technology user action is a veeery special use case that probably won't make it into the product, so my suggestion is to go for a user action in web and another action on mobile side if login was sucessful.

iOS help:

Actually, it's not as rare as one would think. I've seen at least two cases recently at customers.

 @Patrick_H are there any options to create also user action on the web part when there is just an HTTP POST request of the login form which then redirects? We tried to push custom actions using dtrum API in the validation code for the form, but it was not really reliable.  Probably due to the fact the navigation from the page was too fast and those beacons have not been sent. Ideally, we would have at least the time when the user clicked the web button captured by the web RUM including the action type (login with password/ login with OTP / ... ). The landing in the native part is possible with the manually created action.

I can image capturing and posting the time when user performs the hybrid action to the backend and then returning it back in the deeplink so the mobile action can be created with a different start time. But this is just an idea. Afaik there is not an option to create a mobile action with custom start time, is there?

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

  • no, there currently is no custom starttime option - such option would open lots of other problems/special cases to cover
  • sorry, I don't have that much insight into web rum to answer that
iOS help: