Skip to content
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

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented Jul 1, 2019

Closes #738

@alexmt alexmt requested review from alexec and jessesuen July 1, 2019 22:26
Copy link
Contributor

@alexec alexec left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be anon?

Copy link
Collaborator Author

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

Copy link
Contributor

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

Copy link
Collaborator Author

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

@alexmt alexmt force-pushed the google-analytics branch from 9e7e7a3 to f7bea15 Compare July 1, 2019 22:43
@alexmt alexmt force-pushed the google-analytics branch from f7bea15 to 606b3f7 Compare July 1, 2019 23:42
@codecov
Copy link

codecov bot commented Jul 1, 2019

Codecov Report

Merging #1848 into master will decrease coverage by 0.19%.
The diff coverage is 75%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
util/settings/settings.go 23.79% <75%> (+0.91%) ⬆️
util/lua/a_lua-packr.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5be6db4...606b3f7. Read the comment docs.

@alexmt alexmt merged commit f555da6 into argoproj:master Jul 1, 2019
@alexmt alexmt deleted the google-analytics branch July 15, 2019 19:53
@alexec alexec added this to the v1.2 milestone Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google analytics integration
2 participants