Skip to content

Commit

Permalink
feat: new gtm tag for sign_up (#2589)
Browse files Browse the repository at this point in the history
  • Loading branch information
daine authored Aug 23, 2023
1 parent 79ab967 commit 51cb5e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/signup/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ const Register = () => {
// Try signing in the newly registered user
const result = await login({ username: username, password: password });
if (result) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: "sign_up",
method: "cognito",
});

setNeedsVerification(true);
}
} catch (err) {
Expand Down

0 comments on commit 51cb5e5

Please sign in to comment.