Background
In de-1-3-1-specialhomepage-onboarding-ab-test, the event welcome_survey_account_setup_motivation_saved uses different action_context values per group:
- Treatment (AccountSetup): reading, editing, both, skipped
- Control (Welcome Survey): the raw reason answer, e.g. read; no event when skipped
So readers in control can't be identified the same way as readers in treatment.
Goal
Make the control group send the same action_context values as the treatment group.
Welcome Survey reference: P7829
Acceptance criteria for done
- Control maps reason to reading, editing, other or skipped.
- read → reading
- edit-typo, edit-info-add-change, add-image, new-page, program-participant → editing
- no answer (placeholder) → skipped
- Control sends the event with skipped when the survey is skipped.
- PHPUnit tests cover the mapping and the skip case.