A wrapper for mixpanel in golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


##This will track events, profile and more.

To use

mxipanelAPI := New("PROJECT_ID")
event := &Event{
    Event: "Video Played",
    Properties: map[string]string{
        "Video length": "213",

Special Event properties (optional

  • distinct_id (string): The value of distinct_id will be treated as a string, and used to uniquely identify a user associated with your event. If you provide a distinct_id property with your events, you can track a given user through funnels and distinguish unique users for retention analyses. You should always send the same distinct_id when an event is triggered by the same user.

  • time (number): The time an event occurred. If present, the value should be a unix timestamp (seconds since midnight, January 1st, 1970 - UTC). If this property is not included in your request, Mixpanel will use the time the event arrives at the server.

  • ip (string): An IP address string (e.g. "") associated with the event. This is used for adding geolocation data to events, and should only be required if you are making requests from your backend. If "ip" is absent (and ip=1 is not provided as a URL parameter), Mixpanel will ignore the IP address of the request.