Mixpanel API client for Go
- Go 1.16 and above. This module uses
embed
package introduced for Go 1.16
- github.com/santhosh-tekuri/jsonschema -- for Ingestion API Event validation
- github.com/getkin/kin-openapi -- for requests validation against OpenAPI v3 specification
Check official docs for Ingestion API details.
Our client offers top-level interface to interact with Mixpanel endpoints. We use semi-official json schema of Event object in tests to validate prepared event data. Check this page in docs for the schema link.
Also we made own OpenAPI schema to describe external Mixpanel Ingestion API. The module uses mentioned schema to validate prepared HTTP requests in tests only.
- Track Event:
ingestion.Client.Track()
- Track Event with Deduplication:
ingestion.Client.TrackDeduplicate()
- Track Multiple Events:
ingestion.Client.TrackBatch()
- Set Property, Set Property Once, Increment Numerical Property, Append to List Property, Remove from List Property, Delete Property:
ingestion.Client.Engage()
- Update Multiple Profiles:
ingestion.Client.EngageBatch()