question

Henk S. avatar image
Henk S. asked ·

PDF dowload not pageload?

Hello,


If after a user action, the first thing that happens is a (pdf) file download. I assume this is not seen by dynatrace as a page load os it shows only as a click-on that consumes time? Can we make this visible in Dynatrace?


KR Henk

user actions
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Julius L. avatar image
Julius L. answered ·

If I understand your question, it is basically an identification when a PDF is downloaded completely in the browser. As long as you can identify the start of PDF download and the end of PDF download, you can use the Dynatrace RUM API to capture the action. - dtrum.enterAction() and dtrum.leaveAction(). Then the PDF download would be a separate custom action. Alternatively, if you want to include it in the XHR/Load user action, you can use dtrum.setLoadEndManually() and dtrum.signalLoadEnd().


One possible approach is to set a cookie with the downloaded PDF and check in the application if the cookie is already present. This would indicate a finished download.

Anyway, you will need to modify your application to capture this information and send appropriate events.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Henk S. avatar image
Henk S. answered ·

Hi Julius,


Thanks for your feedback, you have been rewarded (-;


KR Henk

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.