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({
|
export function RybbitIdentify({
|
||||||
kullaniciId,
|
kullaniciId,
|
||||||
eposta,
|
|
||||||
isim,
|
|
||||||
}: {
|
}: {
|
||||||
/** null = oturum yok; o cihazdaki kimlik temizlenir (çıkış sonrası) */
|
/** null = oturum yok; o cihazdaki kimlik temizlenir (çıkış sonrası) */
|
||||||
kullaniciId: string | null;
|
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(() => {
|
useEffect(() => {
|
||||||
if (!kullaniciId) {
|
if (!kullaniciId) {
|
||||||
kullaniciTemizle();
|
kullaniciTemizle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const traits: Record<string, string> = {};
|
kullaniciTanit(kullaniciId);
|
||||||
if (eposta) traits.email = eposta;
|
}, [kullaniciId]);
|
||||||
if (isim) traits.name = isim;
|
|
||||||
kullaniciTanit(kullaniciId, traits);
|
|
||||||
}, [kullaniciId, eposta, isim]);
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export async function UserNav() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="order-2 flex shrink-0 items-center gap-1.5 sm:gap-2">
|
<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} />
|
<ListeSenkron userId={u.id} />
|
||||||
<ListemButonu />
|
<ListemButonu />
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user