feat: enable Kapa anonymous user tracking on docs chat - #535
Conversation
Switch KapaProvider from userTrackingMode none to cookie so unique visitors are tracked via the first-party kapa_web_id cookie. When a user submits a support handoff email, attach it to window.kapaSettings so later Kapa turns can enrich the same user profile. Co-Authored-By: Warp <agent@warp.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Drop handoff email enrichment; keep anonymous first-party cookie tracking. Co-Authored-By: Warp <agent@warp.dev>
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR changes the docs Kapa chat provider from opting out of SDK user tracking to using Kapa's cookie-based anonymous tracking mode. The SDK value is consistent with the intended behavior, and no tests are changed.
Concerns
- Enabling cookie tracking in this globally mounted launcher can set a persistent first-party Kapa identifier for docs visitors on page load, not only after a visitor opens or submits the chat, so the change needs disclosure or consent gating before merge.
Verdict
Found: 0 critical, 1 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
Summary
Enable Kapa anonymous user tracking on the docs Ask AI chat so unique visitors and journeys show up in the Kapa Users dashboard.
Per Kapa React SDK docs,
KapaProvidersupportsuserTrackingModeofcookie(default),fingerprint, ornone. We had explicitly setnone.Changes
src/components/KapaChatLauncher.tsx
userTrackingModefromnonetocookie(first-partykapa_web_idcookie; no PII)Notes
window.kapaSettingsenrichment are intentionally out of scopeUnverified claims
None — behavior matches Kapa React SDK
userTrackingModedocs.Co-Authored-By: Warp agent@warp.dev