User Journeys unfold: Poetry, mazes, and personalization

Guillermo López Guzmán5 Dec 2024

Problem

A fintech app team wants to personalize the interface so each user sees the pages and functions they need. The input is the log of screens visited and buttons clicked, called paths. Sessions have no fixed length, can start on any page and follow no preset data model, so they do not fit ordinary tabular models. The team also needs to know where users get lost.

Example from the article: a Mercado Pago user may pay a credit, renew it or browse for information in different sessions, and the article suggests finding the most common route from the homepage to creating a new credit account.

Solution in brief

Analyze the session, not the user, in two ways. Read it as a document of path-words: TF-IDF and topic modeling then give features and recurring tasks. Or draw it as a directed graph of pages and transitions: graph metrics and traversals then show hubs, clusters, loops and popular routes.

Questions this case answers
  • How to represent variable-length sequences of user actions that can start anywhere as fixed-width features for downstream models
  • How to discover the recurring tasks hidden in unlabeled session data and link them to user attributes and time of day
  • How to detect navigation inefficiency, loops and hub pages in a directed transition network of an app
  • How to turn raw app navigation logs (screens visited, buttons clicked) into a structured dataset for modeling?

Tools and methods

  • TF-IDF — down-weights paths found in most sessions, such as the homepage.
  • LDA — finds topics: groups of co-occurring paths that stand for user tasks.
  • PageRank — ranks pages by inbound links and the rank of the linking pages.
  • Louvain — detects clusters of pages.
  • Centrality measures — find hub pages that most journeys pass through.
  • Graph traversal (DFS, BFS) and modified Dijkstra — find loops, shortest paths and the most popular route between two nodes.
Continue reading — it's free

Google or a one-time email code. No password.