Closed nathanlabrake closed 6 years ago
You have to measure it yourself on the client-side in the app/browser. (It is my understanding that the trackPageView
method isn't really for server-side use unless you're proxying calls through your server to prevent being blocked by ad blockers etc.)
Right now when I use the trackPageView() function I'm always getting a page load time of 0 (except when using the fixed number of 256 in the second example). It doesn't make sense to use a fixed number, obviously, since I'm trying to get how long it took the page to load.
Instead of 256 in this example: $telemetryClient->trackPageView('myPageView', 'http://www.foo.com', 256, ['InlineProperty' => 'test_value'], ['duration' => 42.0]);
How do I correctly get the page loading time?
Thanks, Nathan