From 54e178dd54c5dfd186d3ebd66a3fff2ccc50cbcb Mon Sep 17 00:00:00 2001 From: raylu Date: Tue, 8 Nov 2011 23:45:11 -0800 Subject: add mp_name_tag for mixpanel streams --- mixpanel.go | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3