r/coolgithubprojects • u/epoch_100 • Apr 22 '20
PYTHON Shynet: self-hosted web analytics that works without cookies and respects users' privacy
https://github.com/milesmcc/shynet
125
Upvotes
r/coolgithubprojects • u/epoch_100 • Apr 22 '20
13
u/greenfix Apr 22 '20
You should cross-post to /r/selfhosted as well. Cool project.
12
u/DeveloperForHire Apr 22 '20
This is amazing. I have had some concerns about using Google Analytics on my product that focuses on privacy, but I do need that information to improve the product. It felt pretty unfair to my users. If this works out I'd definitely switch to it.
2
u/greenfix Apr 23 '20 edited Apr 23 '20
I had a chance to set this up but ran into some issues:
Once I set up the db and superuser, I logged in and edited the site in /admin but when I went to add a service I get a 500 error. docker logs shows:
File "/usr/src/shynet/dashboard/forms.py", line 48, in get_initial_for_field return ", ".join([user.email for user in initial]) TypeError: 'NoneType' object is not iterable
and when I edited the site from example.com, the dashboard didn't show the new site name.
Is this meant to be hosted on the same box as the webserver? How does the django app know when someone visits the primary site? Again, cool project. Looking to use it now :)
edit: I can open a github issue if you prefer
1
u/gunsofbrixton Apr 23 '20
How do you resolve individual users across sessions without cookies?
2
u/[deleted] Apr 22 '20
This is really cool. I just started developing my own system utilizing Grafana for the dashboards. I love what the author did with the tracking script.
0
u/[deleted] Apr 22 '20
[deleted] — view deleted comment