mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-03 08:36:41 +07:00
add analytic events
This commit is contained in:
parent
e483079baf
commit
ccdea72437
5 changed files with 15 additions and 5 deletions
src/containers/main/Header
|
@ -32,7 +32,10 @@ const Header: FC<HeaderProps> = observer(() => {
|
|||
const { borisCommentedAt } = useUpdates();
|
||||
const { indicatorEnabled } = useNotifications();
|
||||
|
||||
const onLogin = useCallback(() => showModal(Dialog.Login, {}), [showModal]);
|
||||
const onLogin = useCallback(() => {
|
||||
umami.track('login-button');
|
||||
showModal(Dialog.Login, {});
|
||||
}, [showModal]);
|
||||
|
||||
const top = useScrollTop();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue