Skip to content

Commit

Permalink
πŸ“ˆ Set ga user_data
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 26, 2024
1 parent 41fa683 commit d1fa747
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/EventLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export function updateLoggerUserInfo(
};
vue.$sentry.setUser(opt);
}
if (vue.$gtag) {
if (email) vue.$gtag.set('user_data', { email });
}
if (vue.$crisp) {
if (email) {
vue.$crisp.push(['set', 'user:email', [email, crispToken]]);
Expand Down

0 comments on commit d1fa747

Please sign in to comment.