From 9a745569c47b85569ad30bbf4f54fb2c25a0ccaa Mon Sep 17 00:00:00 2001 From: Mya Pitzeruse Date: Sat, 4 Jun 2022 15:41:08 -0500 Subject: [PATCH] doc: add part on session tracking --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 233f4b6..59c8549 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,22 @@ system. ### pages_page_view_count +The number of page views for a given path and their associated referrer. + ```text # HELP pages_page_view_count page views # TYPE pages_page_view_count counter 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/"} +```