Commit c6045df8 authored by Evan M Jones's avatar Evan M Jones

Fix(segment): Tweaked integration. Deployed.

parent f128562a
package handler
package main
import (
"fmt"
......
......@@ -31,7 +31,7 @@ func (t Track) ServeHTTP(w http.ResponseWriter, r *http.Request) {
defer client.Close()
client.Enqueue(analytics.Page{
UserId: userId,
Name: string(pageView),
Name: r.URL.Path,
Timestamp: time.Now(),
Properties: analytics.NewProperties().
Set("Path", r.URL.Path).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment