Session-start test
Learn how to check if the session has just started.
This test checks whether the session has just started, meaning that the user has just landed on the application.
To determine if a session has just started, this test checks whether the user is on their first page or screen view, which is equivalent to the following condition for page views:
session's stats' pageviews is <= 1
Since page views are tracked automatically, this test requires no additional tracking beyond the regular integration.
Syntax
This test has the following syntax:
/*<session>*/ is starting
To negate the test, you can write:
/*<session>*/ is not starting
Parameters
These are the supported parameters:
- session
The session to check whether it has just started.
Examples
Here is how you can check whether the user has just landed on the application:
session is starting
To check whether the user is on subsequent pages or screens, you can use the following condition:
session is not starting