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

track API usage #1677

Merged
merged 24 commits into from
Nov 22, 2016
Merged

track API usage #1677

merged 24 commits into from
Nov 22, 2016

Conversation

stopfstedt
Copy link
Member

@stopfstedt stopfstedt commented Nov 18, 2016

fixes #1148

the "tracking enabled" flag and the tracking code itself are exposed via the config endpoint in the API (the latter only if the tracking has been enabled.)

google will receive the following three data attributes for each API controller hit

  • the API server's host name
  • the API endpoint URI ("path")
  • the fully qualified name of the controller class that was called.

Copy link
Member

@jrjohnson jrjohnson left a comment

Choose a reason for hiding this comment

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

Can you add these two config items into the WebBundle::ConfigController? Then they will be exposed fro the frontend.

@@ -47,3 +47,5 @@ parameters:
cas_authentication_version: 3
cas_authentication_verify_ssl: true
cas_authentication_certificate_path: null
enable_api_tracking: false
Copy link
Member

Choose a reason for hiding this comment

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

So we can use this same parameter on the frontend lets call it just enable_tracking.

@jrjohnson jrjohnson merged commit a6f7ddd into ilios:master Nov 22, 2016
@stopfstedt stopfstedt deleted the analytics branch November 22, 2016 23:30
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.

log API usage
2 participants