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

Replace analytics library #281

Merged
merged 2 commits into from
Jul 6, 2022
Merged

Replace analytics library #281

merged 2 commits into from
Jul 6, 2022

Conversation

kamilzyla
Copy link
Collaborator

Description

The analytics-ga library seems to be abandoned (last commits 4 years ago) and it depends on an old version of Electron, thus blocking migration to the newest ERB (#241).

The PR replaces it with the popular and well-maintained universal-analytics. The node-machine-id library is used to generate the client ID (same method as in analytics-ga).

I have verified that a launched app can be seen in the "Realtime" section of our analytics.

@kamilzyla kamilzyla self-assigned this Jul 5, 2022
Copy link
Contributor

@marekrogala marekrogala left a comment

Choose a reason for hiding this comment

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

LGTM!

have you tested this with Google Analytics to verify that events are still collected?

@kamilzyla
Copy link
Collaborator Author

Yes, I have verified that a launched app can be seen in the "Realtime" section of our analytics.

The solution in this PR can be improved by tracking more parameters which used to be set by electron-ga automatically (e.g. language, screen resolution). However these are non-essential for us now - I want to focus on #241.

@kamilzyla kamilzyla merged commit d40e032 into main Jul 6, 2022
@kamilzyla kamilzyla deleted the replace-analytics branch July 6, 2022 11:47
@kamilzyla kamilzyla mentioned this pull request Aug 1, 2022
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.

2 participants