Skip to content

wtask-go/mixpanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mixpanel

Mixpanel API client for Go

Go Reference

Requirements

  • Go 1.16 and above. This module uses embed package introduced for Go 1.16

Dependencies

Ingestion API

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.

Events

  • Track Event: ingestion.Client.Track()
  • Track Event with Deduplication: ingestion.Client.TrackDeduplicate()
  • Track Multiple Events: ingestion.Client.TrackBatch()

User Profiles

  • 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()