feat(analytics): identify TMDB users by username via OpenPanel profileId

This commit is contained in:
ner committed 2026-09-29 13:23:35 +03:00
1 parent 69814bcc68
commit 73eb8943b3
3 files changed
+41 -2

No files matched your search

+2 -2
View File
@@ -44,10 +44,10 @@ const analytics = new Proxy({} as Analytics, {
}
});
export const identify = (profileId: string) => {
export const identify = (profile: { profileId: string } & Record<string, unknown>) => {
if (!ready()) return;
op()?.('identify', { profileId });
op()?.('identify', profile);
};
export const clearIdentity = () => {