CristinaRuth / cristina-ruth

Personal site and blog.
https://www.cristinaruth.com
Other
2 stars 0 forks source link

GA Track 30 Second Intervals for Single Page Sessions #13

Closed CristinaRuth closed 4 years ago

CristinaRuth commented 4 years ago

Related to #12

We are accurately capturing bounce rates now because we are sending a GA event once the user has been on the page for 30 seconds.

But we now have a problem wherein we don't really have an idea how long the user stays on the page.

So we'll send another GA event every 30 seconds that the user is on the page and the tab/document is active. (this is after the initial 30 second no bounce event)

As a result, we'll also update the 30 second no bounce event to only send when the tab/document is active.

CristinaRuth commented 4 years ago

Resolved by 44ce406650b66ece3e103fb4d437c185cada486e