diff options
| author | Christine Dodrill <me@christine.website> | 2018-12-01 10:20:44 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-12-01 10:23:20 -0800 |
| commit | 5f61cf92eeabc6ba95072f35460e689954d8f2e3 (patch) | |
| tree | 7339b5d0f828b363bf21848c506f549e04a4d0d1 /cmd/site/html.go | |
| parent | 80f5b1c1d6823ec5f33e9672efa4f820a5be5de6 (diff) | |
| download | xesite-5f61cf92eeabc6ba95072f35460e689954d8f2e3.tar.xz xesite-5f61cf92eeabc6ba95072f35460e689954d8f2e3.zip | |
cmd/site: back out segment experiment, it's not worth it
Diffstat (limited to 'cmd/site/html.go')
| -rw-r--r-- | cmd/site/html.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go index f42b947..ba304c5 100644 --- a/cmd/site/html.go +++ b/cmd/site/html.go @@ -8,7 +8,6 @@ import ( "time" "github.com/Xe/ln" - analytics "gopkg.in/segmentio/analytics-go.v3" ) func logTemplateTime(name string, from time.Time) { @@ -71,15 +70,4 @@ 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{ - UserId: Hash("h", r.Header.Get("X-Forwarded-For")), - Event: "Post Viewed", - Properties: analytics.NewProperties().SetURL(r.RequestURI).SetTitle(p.Title), - }) - if err != nil { - ln.Error(r.Context(), err) - } - } } |
