Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1.85 KB

_7_session_creation_overview.md

File metadata and controls

22 lines (11 loc) · 1.85 KB

Session Creation Overview: Page and Track Analysis

For this block, we will include both pages and tracks events to define sessions. For this, we create intermediate persistent derived tables (PDTs) to process tracks and page views into enriched events and sessions. Including pages allows users to define referrer campaigns, enabling first touch and last touch attribution.

page track analysis

A. [Alias Mapping] (_A_alias_mapping.view.lookml) - User ID Consolidation from Tracks and Pages Table

B. Mapped Events - Serves to map all events (Tracks and Pages) to universal user id as first step in sessionization. Ranks events by User and get the time difference between one event to the next.

C. Session Track Pages - Creates sessions from Mapped Events by identifying a period of inactivity greater than 30 minutes, ending the current session and creating a new one.

D. Event Facts - Maps events to session ids. This table will the starting point for exploration as it contains all the necessary keys (Session ID, Universal User ID) for all relevant joins. Session or User fact tables can be created from Event facts to speed up query results.

Looker Model - These individual files can be integrated in the Pages Model File. Event_id is NOT the primary key for Events, so joins must use multiple identifiers on required fields, like anonymous_id, received_at, and event_id. Also event_id may be called id, just swap the name.

👉 Continue to Campaign Attribution Method

👈 Back to User ID Consolidation

🏠 README Table of Contents