Skip to content

Commit

Permalink
report sign up to google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Mushnin committed May 14, 2024
1 parent 4336b08 commit a6ff55a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/src/hooks/useSignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ const useSignUp = () => {
sendReport("signed up", { username: variables.username, email: variables.email }, [
`user_token: ${response.data.id}`,
]);
if (typeof gtag === "function") {
gtag("set", "user_properties", {
user_status: "signed_up",
});
} else {
console.warn("gtag function is not defined");
}

getUser();
},
Expand Down

0 comments on commit a6ff55a

Please sign in to comment.