Skip to main content Skip to complementary content

SESSION_COUNT

Counts the number of sessions, where a session is defined as events separated by no more than the given window size.

Syntax

SESSION_COUNT([STORED_SESSIONS,] TIME, WINDOWSIZE)

Arguments

STORED_SESSIONS

Type: integer

Default: 2,147,483,647

(Optional) The maximum number of entries that are counted. When omitted, there is effectively no limit.

TIME

Type: numeric

The time value associated with each event. This is the value that is used to calculate sessions.

WINDOWSIZE

Type: numeric

The window gap size to use. A session is defined as a group of events that are not separated by a time gap larger than WINDOWSIZE.

This value should be in the same time unit as TIME.

Returns

Type: integer

Returns the number of sessions based on the values in TIME with session length being configured by WINDOWSIZE.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!