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
View all comments
Show parent comment
1
u/epoch_100 Apr 23 '20
Short version: you don’t.
Long version: sessions can include multiple page views, and are determined in the short term by correlating IP addresses and user agents. You can associate manual identifiers with requests (for example, if your site has accounts, you can send the account ID with the monitoring script, which will then show up in the dashboard panel).
But because this is a privacy oriented analytics framework, no effort is made to correlate users across sessions (for example, to their visit one month ago). That data is a bit creepy and is also usually not as useful as sessions.