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

PDF dowload not pageload?

henk_stobbe
DynaMight Champion
DynaMight Champion

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


2 REPLIES 2

Julius_Loman
DynaMight Legend
DynaMight Legend

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.


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

henk_stobbe
DynaMight Champion
DynaMight Champion

Hi Julius,


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


KR Henk


Featured Posts