SessionIdentifier
- 1 Minute to read
- Print
- DarkLight
- PDF
SessionIdentifier
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
General: SessionIdentifier
On a foreign (many-side) table, for the set of records corresponding to each key in the primary (one-side) table, create a sequence counter (an integer discrete field) for each set of records where the elapsed timestamp since the last entry seen is less than the specified duration, in seconds.
Purpose
Use this function to:
- Organise timestamped data into user sessions of specified duration
Return Value
Property | Value |
---|---|
FieldType | Integer |
FieldSize | Continuous |
DataType | Continuous |
DataSize | Integer |
Example Return Value: 1.....N where N is the number of individual sessions that are identified.
Parameters
Parameter | JSON | Description |
---|---|---|
Table | “targetTable”: “MyTableName” | The target table on which the new field will be created |
Filter | “dataset”: {DataSet_JSON} | Optional. If a filter is applied, records not in the filter recordset will be returned as null. |
Function | "function":"sessionidentifier" | SessionIdentifier |
Primary Table | “p1”: “PrimaryTableName” | A primary table that is linked to the target table on the key identifier. For example, if Table = [transactions], Primary Table could be [customer], where the 2 tables are linked on [cid] [transactions].[cid] ->[customer].[cid] |
Timestamp | “p2”:"DateTimeFieldName" | Required. The DateTime Field to use for calculating session intervals. Supports:
|
Duration Secs | “p3”:"#120" | Required. The number of seconds in a session. Supports:
e.g.,
|
JSON Sample
{
"method": "BuildBakedField",
"project": "Internet1",
"targetTable": "webaction",
"overwrite": true,
"name": "Session_10mins",
"function": "sessionidentifier",
"p1": "UniqueUser",
"p2": "timestamp",
"p3": "#600"
}
Usage Notes
See Also:
- Engineering | Expression Field
- DateTime fields
Example
Example | Details |
---|---|
Description | Group user transactions into sessions of no more than 2 mins inactivity |
Input |
|
Sample |
Was this article helpful?