summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-11-08 23:45:11 -0800
committerraylu <raylu@mixpanel.com>2011-11-08 23:45:11 -0800
commit54e178dd54c5dfd186d3ebd66a3fff2ccc50cbcb (patch)
treec6a3f7e41f1c8fa956883f724c2d74c06025457b
parentb526438feb86bb547f4369cd4c42a4a8160a6df8 (diff)
downloadaudioaxis-54e178dd54c5dfd186d3ebd66a3fff2ccc50cbcb.tar.xz
add mp_name_tag for mixpanel streamsHEADmaster
-rw-r--r--mixpanel.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mixpanel.go b/mixpanel.go
index 7c432bf..435faec 100644
--- a/mixpanel.go
+++ b/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