Getting Google Analytics Style Metrics without Sending Sensitive Data to 3rd Party Servers

  softwareengineering

I have spent a few hours now researching a good approach to this but don’t see anything promising at all. To summarize my problem:

  • Project involves a very large web-based app written over many years in a mix of different languages and libraries.
  • The data displayed by the app contains lots of sensitive personal information and is subject to various regulations.
  • Higher ups would like some “Google Analytics style” metrics about how the users interact with the app, what buttons they click, what features get used the most etc.
  • However, they have qualms with the this analytics data being stored in 3rd party servers as it can contain sensitive data that we can’t be sending to others.
  • Due to the size and complexity of the app, a solution similar to simply adding a few lines of javascript on the bottom of each page like you would for google analytics is highly preferred over writing a mostly custom solution from scratch.

What is the best way to do this? I was really hoping that Google Analytics or any of the other metrics plugins would have a “local” mode for this but I don’t see anything online to do it. So far the best thing I have found is keen-tracking.js but it looks like it has very limited functionality and would need a lot of the features we are looking for implemented ourselves.

New contributor

Dan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT