Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Analytics
English French
English French

How can I retrieve time spent on a bounce visit?

You can get a time spent value for a bounce visit as long as the visit contains at least two events. A bounce depends on page views, not on the total number of events, so a visit can be a bounce and still have a measurable duration.

Bounce visit definition

A bounce visit has fewer than two page loads, meaning zero or one page.display event. This is true however many other events are collected, such as click.action or page.scroll. A visit with one page.display and several clicks is still a bounce, because it contains only one page view.

Time spent calculation

Piano Analytics calculates time spent from the time between events. It adds up the gaps between consecutive events in a visit, which means:

  • A visit needs at least two events to have a measurable duration.

  • The calculation stops at the last recorded event, because nothing is tracked after it.

  • Only onsite events count. Offsite events, such as some campaign offsite click events, may not contribute to time spent.

Time spent on bounce visits

For a bounce visit to have a time spent value, it needs a second onsite event. For example, a visit contains a page.display when the page loads, then a click.action when the visitor interacts with the same page. The difference between the two timestamps gives the time spent. The visit is still a bounce, because it has only one page.display.

Another common approach is to collect a second onsite event such as a page.scroll, triggered after the visitor scrolls. It also gives a second timestamp, so the duration can be measured.

Events in the visit

Bounce visit

Time spent

One page.display

Yes

None, because there's no second timestamp

page.display and click.action

Yes

Yes, the time between the two events

page.display and page.scroll

Yes

Yes, the time between the two events

page.display and an offsite event

Yes

Usually none, because offsite events don't count toward onsite time

Troubleshooting

  • Time spent of 0: the visit contains only one event, so there's no measurable duration. Or the additional event is offsite, so it doesn't contribute to onsite time.

  • A bounce visit is missing from a time spent metric: some total time spent metrics exclude bounce visits, or visits without duration, by design. A visit can therefore have a measurable duration in one report, while another aggregated metric leaves it out. For example, page-based metrics such as Time spent (pages) exclude bounce pages.

Last updated: