Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report page load times #46

Open
jehna opened this issue Oct 2, 2017 · 6 comments
Open

Report page load times #46

jehna opened this issue Oct 2, 2017 · 6 comments

Comments

@jehna
Copy link
Owner

jehna commented Oct 2, 2017

ga-lite does not currently report page load times.

@jehna
Copy link
Owner Author

jehna commented Oct 2, 2017

We could use browser's Navigation Timing API by default.

@rfgamaral
Copy link

rfgamaral commented Nov 2, 2017

ga-lite does not currently report page load times.

Does the official? (I really don't know)

@jehna
Copy link
Owner Author

jehna commented Nov 2, 2017

The official analytics.js does report page load times, but only 1%-10% of the page loads (1% by default)

@Lozula
Copy link

Lozula commented Dec 22, 2017

Curious if this is on the road map. Tracking user page load times is handy :)

@jehna
Copy link
Owner Author

jehna commented Dec 22, 2017

There's no specific roadmap (I'm still the only person contributing to ga-lite) planned, but this feature is a high priority to next releases.

Any contributions to code would be warmly welcome :)

@Lozula
Copy link

Lozula commented Dec 22, 2017

Thanks very much for the update. My coding isn't awesome, but I will see what I can do.

In the meantime, I'm using a custom timing event that uses the browsers navigation timing api and sending that through gal lite as follows inside an onload:

var loadTime = window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart;
galite('send', 'timing', 'pageload', 'load', loadTime);

Would have to figure out how to do this so it goes into the google analytics site speed report section though, which is the bit which is probably somewhat harder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants