Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
capturePageView sent `$current_url: origin + path`, stripping the query string — so every Meta-ad UTM was lost and all paid traffic was mis-bucketed as "direct" (PostHog saw 9 facebook visitors vs Meta's ~1450 LPV over 21 days). Send the full window.location.href so PostHog parses $utm_* / $initial_utm_*. Also flip person_profiles to "always" so anonymous ad visitors get a first-touch profile (volume ~34k/mo, well within the 1M free tier). Adds a regression test guarding the query string. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>