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

  1. If you do not have a beginning of session/end of session event, create the event that marks the beginning of the session.
    1. Set the trigger for the event to be First Hit of Session or End of Session.
    2. 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.
    3. Save the event draft.
    4. Run it through the Event Tester. See Event Tester.
    5. Commit the changes.
  2. Create the distance event.
    1. Specify whether you are measuring distance as time or pages.
    2. If you are measuring the distance from the start of session, add your Start of Session event first. If you are measuring the distance between your event and the end of session, add your event first.
    3. Add the other event:
      1. Distance from start of session: your event
      2. Distance from event to end of session: End of Session event.
    4. Specify the other properties of the distance event as needed.
    5. Save the event draft.
    6. Run it through the Event Tester. See Event Tester.
    7. Commit the changes.