One URL to Rule Them All: Dynamic Landing Pages in Wagtail
summary
Truth Initiative moves from dozens of near-duplicate pages to one Wagtail page on a Django backend that parses the last URL segment as a campaign slug and saves it as a hidden form field so signups tie back to source. Routing uses the routable page mixin with a custom route/serve fallback to avoid collisions with real subpages. A/B tests run from the CMS via the A/B testing add-on, persist assignments in localStorage, and were exercised with 50-sample tests; editors dramatically cut page maintenance.
AI-written summary · about
chapters (9)
- 0:00Introduction and speaker intro
- 1:32About Truth Initiative project
- 3:50Problem with old campaign setup
- 5:43Wagtail routable page mix-in
- 7:56Tracking campaign slugs in forms
- 9:02Fixing attribute error for generic pages
- 10:35Implementing A/B testing in Wagtail
- 13:33Demo of A/B testing setup
- 16:26Q&A session
