Distance events from start or to end of session
About this task
To measure the distance between the beginning or end of a session and an event, you must add an event condition that is always triggered on the first or last hit of the session.
To create a distance event from start to a specific event or from a specific event to the end of session:
Procedure
- If you do not have a beginning of session/end of session
event, create the event that marks the beginning of the session.
- Set the trigger for the event to be
First Hit of Session
orEnd of Session
. - Set the condition for the event to be an attribute that
is always present. For example, you can use the Discover system attribute
Session GUID
, which is assigned a value on the first hit of every valid Discover session by the Canister. - Save the event draft.
- Run it through the Event Tester. See Event Tester.
- Commit the changes.
- Set the trigger for the event to be
- Create the distance event.