I am setting up custom events using the Mixpanel API. Everything works like a charm, the event is sent correctly to Mixpanel. Only problem is: each event is sent 2 times. It seems that if the button is clicked, the event is sent to Mixpanel 2 times.
Any idea how I can fix this?
Below the custom event I set up to track the custom events.