Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localhost requests to mixpanel being "cancelled"

In an attempt to test with mixpanel analytics locally, I am experiencing an issue with requests being cancelled (status code: 0).

Troubleshooting:

  • Verified that api token is correct
  • Mixpanel project settings use local domain
  • Requests work if copied and ran in browser tab

(Note: I set up KISSmetrics for local testing with no issues)

like image 686
Chris Avatar asked Nov 02 '22 19:11

Chris


1 Answers

Cancelled means that the page is moving before the request is completed. This is very common when you attach a Mixpanel event to a link click or form submission event.

You can avoid this by using track_links() or track_forms()

like image 64
ttrefren Avatar answered Nov 15 '22 05:11

ttrefren