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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user