add_session | R Documentation |
add_session()
groups visits into "sessions", defining a session to end
when the difference between two consecutive timestamps exceeds a cutoff
.
add_session(wt, cutoff)
wt |
webtrack data object. |
cutoff |
numeric (seconds). If the difference between two consecutive timestamps exceeds this value, a new browsing session is defined. |
webtrack data.frame with the same columns as wt and a new column called session.
## Not run:
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
# Setting cutoff to 30 minutes
wt <- add_session(wt, cutoff = 1800)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.