| session_count | R Documentation |
link{session_count} counts the number of sessions in a sessionised
dataset, producing either a count for the overall dataset or on a per-user
basis (see below).
session_count(sessions, user_id = NULL)
sessions |
a dataset of sessions, presumably generated by
|
user_id |
the column of |
either a single integer value or a data.frame (see above).
#Load and sessionise the dataset
data("session_dataset")
sessions <- sessionise(session_dataset, timestamp, uuid)
# Calculate overall bounce rate
count <- session_count(sessions)
# Calculate session count on a per-user basis
per_user <- session_count(sessions, user_id = uuid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.