Skip to content

Commit

Permalink
refactor: remove user id from the GTM data layer
Browse files Browse the repository at this point in the history
  • Loading branch information
alangumer committed Dec 4, 2024
1 parent 275f903 commit a0e85c8
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 a0e85c8

Please sign in to comment.