Commit 1d0294c3 authored by Ankit Nayan's avatar Ankit Nayan
Browse files

chore: changes in params

No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -652,7 +652,7 @@ func (aH *APIHandler) submitFeedback(w http.ResponseWriter, r *http.Request) {
email := postData["email"]
(*aH.pc).Enqueue(analytics.Track{
UserId: aH.distinctId,
UserId: aH.ipAddress,
Event: "InProduct Feeback Submitted",
Properties: analytics.NewProperties().Set("email", email).Set("message", message).Set("ip", aH.ipAddress),
})
......@@ -669,7 +669,7 @@ func (aH *APIHandler) user(w http.ResponseWriter, r *http.Request) {
}
(*aH.pc).Enqueue(analytics.Identify{
UserId: aH.distinctId,
UserId: aH.ipAddress,
Traits: analytics.NewTraits().SetName(user.Name).SetEmail(user.Email).Set("ip", aH.ipAddress),
})
......@@ -848,7 +848,7 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
}
(*aH.pc).Enqueue(analytics.Track{
UserId: aH.distinctId,
UserId: aH.ipAddress,
Event: "Number of Services",
Properties: analytics.NewProperties().Set("number", len(*result)).Set("ip", aH.ipAddress),
})
......
......@@ -176,7 +176,7 @@ func (s *Server) analyticsMiddleware(next http.Handler) http.Handler {
(*s.analyticsClient).Enqueue(analytics.Track{
Event: path,
UserId: s.distinctId,
UserId: s.ipAddress,
Properties: analytics.NewProperties().
Set("ip", s.ipAddress),
})
......
Supports Markdown
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