less anonymous

This commit is contained in:
Cadey Ratio 2018-08-22 03:28:24 +00:00
parent 7e0acc5f92
commit 0329cb5bd8
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {
if s.segment != nil {
err := s.segment.Enqueue(analytics.Track{
UserId: Hash(r.RemoteAddr, r.Header.Get("X-Forwarded-For")),
UserId: Hash("h", r.Header.Get("X-Forwarded-For")),
Event: "Post Viewed",
Properties: analytics.NewProperties().SetURL(r.RequestURI).SetTitle(p.Title),
})

View File

@ -60,7 +60,7 @@ func (s *Site) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if s.segment != nil {
if !strings.HasPrefix(r.RequestURI, "/blog/") {
err := s.segment.Enqueue(analytics.Track{
UserId: Hash(r.RemoteAddr, r.Header.Get("X-Forwarded-For")),
UserId: Hash("h", r.Header.Get("X-Forwarded-For")),
Event: "Page Viewed",
Properties: analytics.NewProperties().SetURL(r.RequestURI),
})