Question

API - not able to track events

  • 24 November 2020
  • 2 replies
  • 100 views

  • New Participant
  • 2 replies

Hi there,

 

I’m using insomnia to test Mixpanel API, and I not being able to track events.

I’m using endpoint: https://api-eu.mixpanel.com/track#live-event (I also tested with https://api.mixpanel.com/track#live-event)

My Json Body is: 

{

"event": "Testing",
"properties": {
"distinct_id": "123",
"token": "My_PROJECT_TOKEN"
}

}

 

And i’m using in my headers the Authorization with my  username and secret combined to base64

https://prnt.sc/vp5b4u

 

Now, i’m always getting a 0 in the answer, meaning that something is invalid in the data.

 

Can someone please help me?

Thanks


2 replies

Userlevel 6
Badge +3

I don’t see any glaring syntax issues from where I am sitting, but I want to share this resource with some step by step examples: 

Maybe you can start there and see if you can work backwards to make it work.

 

Please share an update with how your project is coming along, I want to make sure that you are no longer stuck!

Thanks for your reply @cherise , that’s exactly what i’m using at the moment since i’m not able do it other way. 

Reply


Mixpanel