Coder Social home page Coder Social logo

Comments (6)

bluesmoon avatar bluesmoon commented on September 26, 2024

Use the t_done value from that beacon

from boomerang.

iwindfree avatar iwindfree commented on September 26, 2024

Thanks for your reply.
but is t_done is page elapsed time?
In my test, for example.
I entered the page1. ( 10:00:00)
I leaved the page1. (10:00:30) // after 30 seconds
When I leaved the page1, I received page unload beacon (rt.quit exist).
but in page unload beacon, t_done value is 270ms.
I think that it may not the time user stayed in that page.

I think that I could find the time which user stayed a page with the same session and the same page id in the history data and compare the values. However, it can take a lot of time in a lot of data, so I asked if we could know the corresponding value from the unload beacon. (above example, 30 sec)

Thanks in advance.

from boomerang.

bluesmoon avatar bluesmoon commented on September 26, 2024

May be a bug in t_done then. In any case, you can look at rt.end and subtract either rt.tstart or nt_load_end depending on whether you want it from navigation start or load complete.

from boomerang.

iwindfree avatar iwindfree commented on September 26, 2024

Thanks for your reply.

But unload beacon (rt.quit exist), rt.end - rt.start not represent page stay time. It only equal to t_done.
I think that I search the first beacon and unload beacon for same page id, and rt.end of unload beacon and substract rt.tstart or nt_load_end of first beacon.

from boomerang.

bluesmoon avatar bluesmoon commented on September 26, 2024

Unless you have a SPA, nt_load_end and rt.tstart are always the timestamp of the navigation start of the page. They will be the same for all beacons on the same navigation. For single page apps there are multiple navigations in a single page, so maybe that is what you're seeing.

from boomerang.

iwindfree avatar iwindfree commented on September 26, 2024

Thnaks for your reply.
I build boomerang script with spa plugin support SPA based web page and normal web page.
In my test web page is not SPA type. but boomerang is buid with spa plugin, the problem happened.
I try to another way to check page stayed time. thank you.

from boomerang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.