DocsOOnboardProgress & Analytics
Analytics

Progress & Analytics

OOnboardorravo.com/docs/oonboard/analytics

Progress Tracking & Analytics

Progress Tracking

OOB_Progress persists where each user is in a flow.

php// Check if a user has completed a specific flow
$done = OOB_Progress::has_completed( $flow_id, $user_id );  // bool

// Global helper function
$done = oob_has_completed_flow( $flow_id );  // uses current_user_id() if no $user_id given

// Get a user's current step in a flow
$step_index = OOB_Progress::get_current_step( $flow_id, $user_id );

// Reset a user's progress (re-triggers flow)
OOB_Progress::reset( $flow_id, $user_id );

Analytics

OOB_Analytics tracks step views, completions, and abandonment.

php// Get conversion report for a flow
$report = OOB_Analytics::get_report( $flow_id );
// Returns:
// [
//   'started'       => int,    // users who began the flow
//   'completed'     => int,    // users who finished
//   'completion_rate'=> float, // 0.0 – 1.0
//   'steps'         => [       // per-step breakdown
//     [ 'step_index' => 0, 'views' => 210, 'completions' => 198, 'drop_rate' => 0.057 ],
//     ...
//   ],
// ]

// Get A/B variant comparison
$ab = OOB_Analytics::get_ab_comparison( $flow_id );
// Returns per-variant completion rates

Shortcode Helper

php// Get the admin edit URL for a flow
$url = oob_get_flow_url( $flow_id );
Progress & Analytics — OOnboard Docs — Orravo