Skip to content

Commit

Permalink
Merge pull request #603 from audioverse-org/refactor/remove-user-id
Browse files Browse the repository at this point in the history
refactor: remove user id from the GTM data layer
  • Loading branch information
alangumer authored Dec 4, 2024
2 parents 275f903 + a0e85c8 commit fb47e65
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/molecules/socialLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@ export default function SocialLogin({
if (response?.loginSocial.isNewUser) {
gtmPushEvent('sign_up', {
sign_up_method: variables?.socialName,
user_id: authenticatedUser.user.id,
});
} else {
gtmPushEvent('sign_in', {
sign_in_method: variables?.socialName,
user_id: authenticatedUser.user.id,
});
}
onSuccess ? onSuccess() : await queryClient.invalidateQueries();
Expand Down
1 change: 0 additions & 1 deletion src/components/organisms/registerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function RegisterForm({ showLogin, onSuccess }: Props): JSX.Element {
});
gtmPushEvent('sign_up', {
sign_up_method: 'email',
user_id: authenticatedUser.user.id,
});

onSuccess();
Expand Down
1 change: 0 additions & 1 deletion src/lib/api/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export async function login(email: string, password: string): Promise<true> {
});
gtmPushEvent('sign_in', {
sign_in_method: 'email',
user_id: authenticatedUser.user.id,
});

return true;
Expand Down

0 comments on commit fb47e65

Please sign in to comment.