chore(gizlilik): rybbit identify yalnız kullanıcı ID

[Bilal onayı gerekir] Girişli kullanıcının e-postası ve ismi Rybbit'e
trait olarak gönderiliyordu. Artık yalnızca opak kullanıcı ID'si gider;
anonim → girişli oturum birleştirmesi aynen çalışır. Rybbit'te zaten
kayıtlı trait'ler bu commit'le silinmez (panelden ayrıca temizlenmeli).

Bu commit dalın en sonunda ve bağımsızdır: istenmezse
`git merge gece/p2-olcum~1` ile dışarıda bırakılır.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-09-21 04:50:04 +03:00
parent e1bb4829fd
commit c055e8272c
2 changed files with 5 additions and 10 deletions

View File

@@ -12,24 +12,19 @@ import { kullaniciTanit, kullaniciTemizle } from "@/lib/analitik";
export function RybbitIdentify({
kullaniciId,
eposta,
isim,
}: {
/** null = oturum yok; o cihazdaki kimlik temizlenir (çıkış sonrası) */
kullaniciId: string | null;
eposta?: string | null;
isim?: string | null;
}) {
// Yalnızca opak kullanıcı ID'si gider: e-posta/isim gibi kişisel veri
// üçüncü taraf analitiğe trait olarak GÖNDERİLMEZ.
useEffect(() => {
if (!kullaniciId) {
kullaniciTemizle();
return;
}
const traits: Record<string, string> = {};
if (eposta) traits.email = eposta;
if (isim) traits.name = isim;
kullaniciTanit(kullaniciId, traits);
}, [kullaniciId, eposta, isim]);
kullaniciTanit(kullaniciId);
}, [kullaniciId]);
return null;
}

View File

@@ -44,7 +44,7 @@ export async function UserNav() {
return (
<div className="order-2 flex shrink-0 items-center gap-1.5 sm:gap-2">
<RybbitIdentify kullaniciId={u.id} eposta={u.email} isim={u.name} />
<RybbitIdentify kullaniciId={u.id} />
<ListeSenkron userId={u.id} />
<ListemButonu />
<Link