-
Notifications
You must be signed in to change notification settings - Fork 40
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
track API usage #1677
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.
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 |
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.
So we can use this same parameter on the frontend lets call it just enable_tracking.
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