I’m having a problem with a connection to the Mixpanel API for Track Events (Events)
Their documentation shows that the body of the json sent to the API should show:
curl --request POST
–header ‘Accept: text/plain’
–header ‘Content-Type: application/x-www-form-urlencoded’
“event”: “Signed up”,
I have tested this connection on that page and it sends the event data to my mixpanel.
I have created an API connection in business logic, the logic is:
When I test this or invoke it with UI Builder, I get a 200 return but with a 0 code:
The Mixpanel documentation says:
If present and equal to 1, Mixpanel will respond with a JSON Object describing the success or failure of the tracking call. The returned object will have two keys:
status, with the value 1 on success and 0 on failure, and
error, with a string-valued error message if the request wasn’t successful. This is useful for debugging during implementation.
I think I am having a problem creating the body section of the JSON in the right way, I’ve tried several different structures but keep getting the 0 code return.
Any help much appreciated. Thanks!