Browse Source

add mp_name_tag for mixpanel streams

raylu 14 years ago
parent
commit
54e178dd54
1 changed files with 3 additions and 0 deletions
  1. 3 0
      mixpanel.go

+ 3 - 0
mixpanel.go

@@ -26,6 +26,9 @@ func track(event, ip, id, song, user string) {
 	}
 	if user != "" {
 		properties["user"] = user
+		if user != "anonymous" {
+			properties["mp_name_tag"] = user
+		}
 	}
 	data["properties"] = properties