Page MenuHomePhabricator

Measure page load abandon rate
Open, MediumPublic


Based on reading into, I think it'd be useful to collect data on how frequently page views are aborted before reaching the "onload" event.

Our current instrumentation only sends a beacon to the server if the page load completed.

I recall that the soasta/boomerang approach to collecting Navigation Timing was to send the data either on onload or unload. Which means in some cases that the data is incomplete.

For us, I'd prefer to start with just collecting the fact that it was aborted and after how long. I'd prefer to keep them separate from navtiming metrics for now. Although perhaps we can find a way to integrate it with T181956 later.

We could start the campaign from WikimediaEvents by simply listening for the unload event, and check that navigation.loadEventEnd is not set, and then beacon back based on - navigation.fetchStart, or something like that.

Event Timeline

Krinkle created this task.Feb 8 2018, 7:54 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 8 2018, 7:54 PM

@JKatzWMF @Ottomata Relevant to your interests, I suspect? (Note that this isn't scheduled or anything, figured I'd flag the task for you though.)

Peter added subscribers: ori, Peter.Feb 8 2018, 8:15 PM

I remember I discussed it with @ori long time ago in T126217 to get that with nav timing but I see now that I missed writing down our reasoning. One thing was that the extension is loaded really late on slow connections, so your idea of just doing an event sounds good.

+1! I think you can do this with EventLogging now, but keep an eye on (still WIP proposal) for next FY :)

Krinkle triaged this task as Medium priority.Feb 12 2018, 9:14 PM