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

Migrate from Google Analytics and Mixpanel to Ahoy #4032

Closed
7 tasks
ferblape opened this issue Jan 17, 2022 · 3 comments · Fixed by #4044
Closed
7 tasks

Migrate from Google Analytics and Mixpanel to Ahoy #4032

ferblape opened this issue Jan 17, 2022 · 3 comments · Fixed by #4044
Assignees
Labels

Comments

@ferblape
Copy link
Member

ferblape commented Jan 17, 2022

We are removing application Google Analytics service and replacing it by Ahoy. If a customer setup its own analytics code, it'll be kept, meaning customers that don't set an Analytics code will have Ahoy stats.

Right now there are two analytics signatures installed:

  • by default, the application installs the code defined in config/application.ymlsetting
  • optional, the site has an attribute to set a specific code. We are keeping this code if has been set

First part: remove Analytics

  • remove the attribute from config/application.yml and update docs
  • remove the app analytics JS from the templates. If the customer is using it's own code, keep it
  • extra ball: remove references to Mixpanel

Second part: add Ahoy track

  • install ahoy gem
  • track site visits, probably in an after filter
  • track visits with a sidekiq job
  • configure it to track site requests. Keep in mind the multitenancy, so you might wan to add the site host to the ahoy event
@ferblape ferblape added the chore label Jan 17, 2022
@furilo
Copy link
Member

furilo commented Jan 17, 2022

Some clients are using their own Analytics. Maybe if a custom Analytics ID has been set up from the admin, we should leave it?

@ferblape
Copy link
Member Author

You are right, I'll reword the issue

@furilo
Copy link
Member

furilo commented Feb 8, 2022

We should activate this: https://github.com/ankane/ahoy#gdpr-compliance-1

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 a pull request may close this issue.

3 participants