mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
add analytic events
This commit is contained in:
parent
e483079baf
commit
ccdea72437
5 changed files with 15 additions and 5 deletions
|
@ -31,10 +31,10 @@ const NodeLayout = observer(() => {
|
|||
|
||||
useNodeCoverImage(node);
|
||||
|
||||
const onUnauthorizedLike = useCallback(
|
||||
() => showRegisterDialog({}),
|
||||
[showRegisterDialog],
|
||||
);
|
||||
const onUnauthorizedLike = useCallback(() => {
|
||||
umami.track('register-dialog-from-like');
|
||||
showRegisterDialog({});
|
||||
}, [showRegisterDialog]);
|
||||
|
||||
return (
|
||||
<div className={styles.wrap}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue