| @@ -423,8 +423,11 @@ | ||
| 423 | 423 | |
| 424 | 424 | // Save to user meta. |
| 425 | 425 | update_user_meta( $user_id, 'srfm_learn_progress', $saved_progress ); |
| 426 | 426 | |
| 427 | + // Flag for analytics — next send cycle will include updated learn snapshot. | |
| 428 | + set_transient( 'srfm_learn_progress_changed', 1, 0 ); | |
| 429 | + | |
| 427 | 430 | return rest_ensure_response( |
| 428 | 431 | [ |
| 429 | 432 | 'success' => true, |
| 430 | 433 | 'chapterId' => $chapter_id, |