-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #738 - Allow configuring google analytics tracking #1848
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment.
const token = cookies['argocd.token']; | ||
const user: any = token && jwt(token) || null; | ||
if (user) { | ||
return user.email || user.sub; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be anon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it makes sense. changed to return 'anonymous' is there is no user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry - I meant to say we should obfuscate the UID before we send it to Google
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we agreed offline, added setting to obfuscate user ids. By default user ids are obfuscated
Codecov Report
@@ Coverage Diff @@
## master #1848 +/- ##
=========================================
- Coverage 35.74% 35.54% -0.2%
=========================================
Files 86 85 -1
Lines 12039 12006 -33
=========================================
- Hits 4303 4268 -35
- Misses 7149 7150 +1
- Partials 587 588 +1
Continue to review full report at Codecov.
|
Closes #738