Skip to content

feat: improve analytics #4153

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

Merged
merged 5 commits into from
Nov 22, 2018
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

PR Checklist

What is the current behavior?

CLI has code for tracking in Google Analytics and in Eqatec Analytics. The second one is not used anymore. Also, there's no way to understand what has been tracked.

What is the new behavior?

Code for tracking in Eqatec Analytics has been removed.
Passing --analyticsLogFile <path to file> will allow you to check everything that's being tracked to Google Analytics.

Additional details

  • Removed AnalyticsServiceBase as it is not longer required as a base class.
  • Clean the API of $analyticsService from methods that were used only for Eqatec Analytics tracking
  • Remove xmlhttprequest dependency

Further improvements:

  • There are several TODOs in the code, which should be handled - basically all of them is tracking that has been used before and we need to figure it out how to change the tracking now. (search for TODO(Analytics): in the code).
  • We can remove AnalyticsBroker class and directly invoke GoogleAnalyticsProvider from the analytics-broker-process. This will allow us to remove analyticsLoggingService (currently it is a separate service as it has to be used from analytics-broker-process, AnalyticsBroker and GoogleAnalyticsProvider).

Implements: #4152
Also related to #3827

Remove tracking to Eqatec Analytics as we no longer use it.
`xmlhttprequest` package has been used for Eqatec Analytics. We do not need it anymore
…config props

Remove `AnalyticsServiceBase` by moving the required code to `AnalyticsService`.
Remove obsolete static config props.
Write analytics data to a file passed as `--analyticsLogFile`. The file will contain timestamp when the action is executed and what is the data passed to analytics.
Also add some additional logging to the file, so when something fails, it will be easier for diagnostics.
In case `--analyticsLogFile` is not passed, information will not be tracked.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/remove-eqatec-analytics-2 branch from 491bd67 to 9ee3ee8 Compare November 21, 2018 16:12
@rosen-vladimirov rosen-vladimirov merged commit 851efe2 into master Nov 22, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/remove-eqatec-analytics-2 branch November 22, 2018 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants