Description Usage Arguments Value See Also Examples
Calculate the overall length of each session.
1 | session_length(sessions)
|
sessions |
a dataset of sessions, presumably generated with
|
a data.frame of two columns - session_id
, containing unique
session IDs, and session_length
, containing the length (in seconds)
of that particular session.
Please note that these lengths should be considered a minimum; because of how sessions behave, calculating the time-on-page of the last event in a session is impossible.
sessionise
for session reconstruction, and
time_on_page
, session_count
and
bounce_rate
for other session-related metrics.
1 2 3 4 5 6 | #Load and sessionise the dataset
data("session_dataset")
sessions <- sessionise(session_dataset, timestamp, uuid)
# Calculate session length
len <- session_length(sessions)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.