use dapper labs mixpanel
@@ -30,16 +30,12 @@ import (
const (
MIXPANEL_TRACK_URL = "https://api.mixpanel.com/track"
- MIXPANEL_QUERY_URL = "https://mixpanel.com/api/2.0/engage?project_id=2763737"
- //MIXPANEL_QUERY_URL = "https://mixpanel.com/api/2.0/engage?project_id=2154593"
+ MIXPANEL_QUERY_URL = "https://mixpanel.com/api/2.0/engage?project_id=2154593"
MIXPANEL_PROFILE_URL = "https://api.mixpanel.com/engage#profile-set"
)
-//var MIXPANEL_PROJECT_TOKEN = ""
-//var MIXPANEL_SERVICE_ACCOUNT_SECRET = ""
-
-var MIXPANEL_PROJECT_TOKEN = "7af4e6f44df2c77935477ba103b3c529"
-var MIXPANEL_SERVICE_ACCOUNT_SECRET = "Rmxvdy1jbGkuZTVkMTNjLm1wLXNlcnZpY2UtYWNjb3VudDp2TkZrVzhiWWNSY1ZuQmtMZFF4bXVzamdZa0dyc2FsMQ=="
+var MIXPANEL_PROJECT_TOKEN = ""
+var MIXPANEL_SERVICE_ACCOUNT_SECRET = ""
type MixpanelClient struct {
token string
@@ -167,7 +163,6 @@ func IsUserOptedIn() (bool, error) {
return false, fmt.Errorf("invalid response status code %d for tracking command usage", res.StatusCode)
}
if len(queryResponse.Results) == 0 {
- fmt.Printf("no results on query")
return true, nil
}
return queryResponse.Results[0].Properties.OptIn, nil
