I see some old questions that have already been closed, but none of the answers provided work.
I just want to send a mixpanel event when a user clicks a button, nothing fancy.
So far I have tried:
-
mixpanel tag in page head through wix analytics setup. The mixpanel global variable set on the window object cannot be accessed from corvid code.
-
installed npm mixpanel package, cannot import it. The require statement generates an error both in the editor and in the live version. Another problem with it, since it is a server package, cannot call identify() to track the event for the right user.
-
made a request for mixpanel-browser npm package, this one is supposed to allow proper tracking.