diff options
| author | Christine Dodrill <me@christine.website> | 2018-08-22 03:26:10 +0000 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-08-22 03:26:10 +0000 |
| commit | 7e0acc5f920c2de8f9d898a1148f43b8549f9d9a (patch) | |
| tree | a27d06ee2435200c1354c3c95a0a70139f562b19 /cmd | |
| parent | 66902783a1d1a83e88044ad7a1d8709003f5b6eb (diff) | |
| download | xesite-7e0acc5f920c2de8f9d898a1148f43b8549f9d9a.tar.xz xesite-7e0acc5f920c2de8f9d898a1148f43b8549f9d9a.zip | |
no pointers
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/site/html.go | 2 | ||||
| -rw-r--r-- | cmd/site/main.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go index 036c854..0270aa5 100644 --- a/cmd/site/html.go +++ b/cmd/site/html.go @@ -73,7 +73,7 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { s.renderTemplatePage("blogpost.html", p).ServeHTTP(w, r) if s.segment != nil { - err := s.segment.Enqueue(&analytics.Track{ + err := s.segment.Enqueue(analytics.Track{ UserId: Hash(r.RemoteAddr, r.Header.Get("X-Forwarded-For")), Event: "Post Viewed", Properties: analytics.NewProperties().SetURL(r.RequestURI).SetTitle(p.Title), diff --git a/cmd/site/main.go b/cmd/site/main.go index 4da5aa0..d8f8544 100644 --- a/cmd/site/main.go +++ b/cmd/site/main.go @@ -59,7 +59,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{ + err := s.segment.Enqueue(analytics.Track{ UserId: Hash(r.RemoteAddr, r.Header.Get("X-Forwarded-For")), Event: "Page Viewed", Properties: analytics.NewProperties().SetURL(r.RequestURI), |
