GoWindGoWind
Home
Framework
GoWind Toolkit
  • Open Source

    • GoWind Admin (Admin Platform)
    • GoWind CMS (Content Management)
    • GoWind UBA (Behavior Analytics)
    • GoWind Shop (E-commerce)
    • GoWind Kanban (Kanban Boards)
    • GoWind Ledger (Personal Finance)
    • GoWind ShortPlay (Short Drama)
    • GoWind Ops (Operations Platform)
    • RushWind (Rust Ecosystem)
  • Open Core (Community + Enterprise)

    • GoWind OA (Office Collaboration)
    • GoWind ERP (Procure-to-Pay)
    • GoWind WMS (Warehousing)
  • Commercial

    • GoWind IM (Instant Messaging)
    • GoWind IoT (IoT Platform)
    • GoWind Edu (AI Education)
    • GoWind MES (Manufacturing Execution)
    • GoWind CDC (Data Pipeline)
    • GoWind SDP (Zero-Trust Gateway)
    • GoWind Quant (Quant Research)
    • GoWind Trade Radar (Export Sourcing)
    • GoWind Game Radar (Game Greenlight)
  • 简体中文
  • English
GitHub
Home
Framework
GoWind Toolkit
  • Open Source

    • GoWind Admin (Admin Platform)
    • GoWind CMS (Content Management)
    • GoWind UBA (Behavior Analytics)
    • GoWind Shop (E-commerce)
    • GoWind Kanban (Kanban Boards)
    • GoWind Ledger (Personal Finance)
    • GoWind ShortPlay (Short Drama)
    • GoWind Ops (Operations Platform)
    • RushWind (Rust Ecosystem)
  • Open Core (Community + Enterprise)

    • GoWind OA (Office Collaboration)
    • GoWind ERP (Procure-to-Pay)
    • GoWind WMS (Warehousing)
  • Commercial

    • GoWind IM (Instant Messaging)
    • GoWind IoT (IoT Platform)
    • GoWind Edu (AI Education)
    • GoWind MES (Manufacturing Execution)
    • GoWind CDC (Data Pipeline)
    • GoWind SDP (Zero-Trust Gateway)
    • GoWind Quant (Quant Research)
    • GoWind Trade Radar (Export Sourcing)
    • GoWind Game Radar (Game Greenlight)
  • 简体中文
  • English
GitHub
  • Introduction

    • GoWind UBA Product Introduction
  • Architecture Reference

    • UBA System Architecture
    • UBA Backend Module Overview
    • UBA Backend API Contract
    • UBA Frontend Architecture
  • Developer Guide

    • UBA Installation Guide
    • UBA Code Generation Pipeline Tutorial
    • Adding an External Service Tutorial
    • Adding a Business Entity Tutorial
    • Adding a Frontend Page Tutorial
  • Operations Guide

    • UBA Docker Deployment Guide
    • UBA Configuration Reference & Security Checklist
    • UBA PM2 Deployment Guide
    • UBA Superset BI Deployment Guide
  • Analyst Guide

    • Data Analyst Getting Started Guide
    • Basic Aggregation

      • Event Trend Analysis
      • Active Users Analysis
      • Group By Aggregation
    • Conversion & Paths

      • Funnel Analysis
      • Retention Analysis
      • Top Conversion Paths
      • Behavior Sequence Analysis
    • User Depth

      • Attribution Analysis
      • Distribution Analysis
      • User Segmentation
      • Click Heatmap
      • Interval Analysis
    • Lifecycle

      • User Lifecycle
      • Churn & Reactivation Analysis
      • New vs Returning Users
      • Matrix Quadrant Analysis
    • Revenue & Value

      • Revenue Analysis
      • Whale Tier (Payer Segmentation)
      • Historical LTV Analysis
    • Sessions & Anomalies

      • Session Analysis
      • Period-over-Period Comparison and Anomaly Detection
    • Gaming

      • Level Analysis (Game)
      • Server Retention (Game)
      • Online Stats Analysis (Game)
      • Economy Analysis (Game)
    • OLAP Cookbook
  • SDK Integration

    • Web SDK Integration Guide
    • C# SDK Integration Guide (Unity / Godot / .NET)
  • Appendix

    • UBA Appendix: Ports, Glossary, Known Limitations & FAQ

Behavior Sequence Analysis

Behavior Sequence (BehaviorSequence) queries the behavioral timeline of a specific individual user — a user-level drill-down investigation tool. It corresponds to the backend AnalyticsService.BehaviorSequence.


1. What Questions It Answers

  • What has a specific user recently done (e.g. a user who filed a complaint, or one with abnormal payments)?
  • What is the order of a user's behaviors within a given session?
  • Troubleshooting: the user claims "I clicked but nothing happened" — which events did they actually trigger?

2. Difference from Path Analysis

ModelGranularityPerspective
Behavior Sequence (BehaviorSequence)A single userInvestigating individual cases, seeing what one person did
Top Conversion Paths (PathSankey)A groupMining mainstream paths

3. Backend API

gRPC: AnalyticsService.BehaviorSequence

FieldTypeDescription
time_rangeTimeRangeAnalysis time range
user_iduint32Target user ID (required)
app_iduint32 (optional)Filter by app
event_namestring (optional)Event name filter (empty = all events)
limituint32 (optional)Maximum number of events returned, default 100

Response BehaviorSequenceResponse: user_id, events[] (SequenceEvent, sorted by time ascending).

Each SequenceEvent contains: timestamp / event_name / session_id / session_seq / referer / platform / channel.

HTTP (admin proxy)

POST /admin/v1/analytics/behavior-sequence
Content-Type: application/json

{
  "timeRange": { "startMs": 1718169600000, "endMs": 1718774399000 },
  "userId": 1001,
  "limit": 50
}

4. Interpreting Results

The returned events are sorted by timestamp ascending — a single timeline. Combined with session_id + session_seq, you can reconstruct the user's exact order of actions within each session:

  • Events with the same session_id belong to one session.
  • session_seq is the index within the session, letting you pinpoint "which step of the session".
  • referer shows the source page; platform/channel show the device environment.

5. Typical Scenarios

Complaint investigation

A user reports "my order failed" — query that user's BehaviorSequence to see whether they actually triggered submit_order, and whether pay_success/pay_fail followed, pinpointing where they got stuck.

High-value user behavior insights

Query the behavior sequences of top-paying users to understand their usage habits (e.g. whether they browse frequently, whether they make good use of search).

Risk tracing

Combined with risk events, examine the full behavior chain of a risk-flagged user before and after the risk occurred.


6. Notes and Caveats

  • userId is required: the behavior sequence is keyed on user_id; anonymous (non-identify-ed) users cannot be queried.
  • limit truncation: heavy users may generate far more events than limit (default 100); increase it for long-period investigations, but mind performance.
  • Ascending order: events are returned from earliest to latest for easy reading along the timeline.
  • Across sessions: one query includes events from multiple sessions within the time range; distinguish them by session_id.

7. Related Documents

  • Segmentation
  • Top Conversion Paths
  • Data Analyst Getting Started Guide
  • Backend API Contract
Edit this page
Last Updated:: 11/3/26, 2:14 PM
Contributors: Bobo
Prev
Top Conversion Paths