Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bounce rate #16

Open
adriaanvanrossum opened this issue Nov 11, 2019 · 4 comments
Open

Add bounce rate #16

adriaanvanrossum opened this issue Nov 11, 2019 · 4 comments

Comments

@adriaanvanrossum
Copy link
Contributor

@adriaanvanrossum adriaanvanrossum commented Nov 11, 2019

It would be based on the original page views feature.

@adriaanvanrossum adriaanvanrossum added this to Features & bugs in Public roadmap via automation Nov 11, 2019
@adriaanvanrossum

This comment has been minimized.

Copy link
Contributor Author

@adriaanvanrossum adriaanvanrossum commented Nov 25, 2019

Just thought about this a bit more. For bounce rate you need to know how many people did visit one page only. For these analytics:

  • Visitor A visits page /page1
  • Visitor B visits page /page1
  • Visitor A visits page /page2

the bounce rate should be 1 / 2 = 50%.

Bounce rate (%) = Visits that access only a single page (#) ÷ Total visits (#) to the website. [1]

We can measure if a user only visited one page by checking their referrer:

Event Learning Unique page views for /page1
Visitor A visits page /page1 No referrer = unique 0 + 1 = 1
Visitor B visits page /page1 No referrer = unique 1 + 1 = 2
Visitor A visits page /page2 Referrer = /page1 2 - 1 = 1

This way we can calculate the bounce rate per page.

@Jivings

This comment has been minimized.

Copy link

@Jivings Jivings commented Nov 25, 2019

Is this really how it is calculated? I always assumed it to be based on visits/visitors.

Based on your example there are two visitors and one bounces, so I would expect bounce rate to be 50%. Because one out of two visitors bounced.

@adriaanvanrossum

This comment has been minimized.

Copy link
Contributor Author

@adriaanvanrossum adriaanvanrossum commented Nov 25, 2019

So total visits should be unique visitors? That makes sense. Will update it above.

@mtimofiiv

This comment has been minimized.

Copy link

@mtimofiiv mtimofiiv commented Nov 25, 2019

One thing I guess I can think of that slightly complicates things.

  • Visitor A visits page /page1
  • Visitor B visits page /page1
  • Visitor A visits page /page2
  • Visitor A visits page /page3

The bounce rate here should still be 1 / 2 = 50% still.

So if you're solely checking the referrer to determine - 1, you will get an inaccurate bounce rate since in that case you will have 0 / 2 = 0%. No one ever leaves 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Public roadmap
  
Features & bugs
3 participants
You can’t perform that action at this time.