Timing

Sometimes you want to know how long certain actions take.

Time since page start

If it takes a long time before events are being tracked, for example how long it takes before the pageview is tracked, you might lose a lot of data. You lose this data, because users bounce/leave the page before the pageview is tracked.

You can easily make use of this feature. The only thing you have to do is add the following code as high as possible in the HTML of the website.

Harvest will check whether this variable is set, if it is set, it calculates the milliseconds that have passed between the page start and the current tracked event.

This is why it is very important that the variable is set as soon as possible.