feat(analytics): identify TMDB users by username via OpenPanel profileId
This commit is contained in:
1 parent
69814bcc68
commit
73eb8943b3
3 files changed
+41
-2
No files matched your search
@@ -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 = () => {
|
||||
|
||||
Reference in new issue
Block a user