aboutsummaryrefslogtreecommitdiff
path: root/cmd/site/html.go
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-08-22 03:28:24 +0000
committerChristine Dodrill <me@christine.website>2018-08-22 03:28:24 +0000
commit0329cb5bd806153f1e6bbe08c1137a4163d0611e (patch)
tree1c036cbe79b2acbdcb32bf1a00b5d055cb46a461 /cmd/site/html.go
parent7e0acc5f920c2de8f9d898a1148f43b8549f9d9a (diff)
downloadxesite-0329cb5bd806153f1e6bbe08c1137a4163d0611e.tar.xz
xesite-0329cb5bd806153f1e6bbe08c1137a4163d0611e.zip
less anonymous
Diffstat (limited to 'cmd/site/html.go')
-rw-r--r--cmd/site/html.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go
index 0270aa5..f42b947 100644
--- a/cmd/site/html.go
+++ b/cmd/site/html.go
@@ -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),
})