I created a library to use Google Analytics (Universal Analytics) on the server-side with asp.net core. It automatically creates pageview, event and timing hits for each request and sends them to Google Analytics via the Measurement Protocol.
Problem
How to imitate the timing hits that analytics.js sends automatically?
There is no documentation on how to send timing data that shows up under Site Speed / Page Timings in Google Analytics (page load time, server response time etc.). I also coulnd't reverse engineer how analytics.js sends this data.
What I tried
I tried using the related parameters (page load time and server response time) to (1) send a timing hit and to (2) add timing parameters to the pageview hit, but Google Analytics doesn't show any timing values - even after 24 hours. My current workaround is to use the user timing parameters that show up under User Timings and use the user timing label to specify the url. However, the reporting features for user timings are rather limited compared to Page Timings reporting.