doc: add part on session tracking

This commit is contained in:
Mya 2022-06-04 15:41:08 -05:00
parent 05d1842c95
commit 9a745569c4
No known key found for this signature in database
GPG Key ID: C3ECFA648DAD27FA

@ -44,8 +44,22 @@ system.
### pages_page_view_count ### pages_page_view_count
The number of page views for a given path and their associated referrer.
```text ```text
# HELP pages_page_view_count page views # HELP pages_page_view_count page views
# TYPE pages_page_view_count counter # TYPE pages_page_view_count counter
pages_page_view_count{country="",path="/charts/",referrer="http://localhost:8080/blog/"} 1 pages_page_view_count{country="",path="/charts/",referrer="http://localhost:8080/blog/"} 1
``` ```
### pages_page_session_duration
How long a user is actively engaged with the page.
https://github.com/mjpitz/pages/issues/2
```text
# HELP pages_page_session_duration time spent on a given page in seconds
# TYPE pages_page_session_duration histogram
pages_page_session_duration{country="",path="/charts/"}
```