skip to Main Content

I have seen the Page speed for the web https://pagespeed.web.dev/
I want to calculate the amount of time taken between the user lands on the screen until the app completes processing and rendering the content.
Have tried some analytics tools such as Firebase performance, Posthog, Mixpanel, Google Analytics, and Instabug. But no tool provided the analytics which I am looking for.

2

Answers


  1. (Disclosure: engineer at PostHog)

    👋

    That’s not built into PostHog but you can format graphs/insights as durations. So if you start a timer and then capture a custom event into PostHog you can analyse those values.

    Here’s an example of where we do that on our website with our web library.
    https://github.com/PostHog/posthog/blob/master/frontend/src/lib/utils/eventUsageLogic.ts#L657

    const properties: Record<string, any> = {
        //<snip/>
        lastRefreshed: lastRefreshed?.toISOString(),
        refreshAge: lastRefreshed ? now().diff(lastRefreshed, 'seconds') : undefined,
    }
    
    Login or Signup to reply.
  2. I want to calculate the amount of time taken between the user landing on the screen until the app completes processing and rendering the content.

    If you are interested in measuring/improving the app’s launch time, then most likely you have to follow the guide that exists at the following URL:

    If you perform some Firebase operations then you should consider using Firebase Performance Monitoring, which is a service that can help you gain insight into the performance characteristics of your app. So this means that you’ll be able to measure the amount of time taken between when the user lands on the screen until all network operations are complete and the corresponding content is rendered on the screen.

    Google Analytics isn’t useful here, because it only provides a service that tracks and reports website traffic.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search