This works great for simple mixpanel calls like this:
But we also need to be able to pull the current user’s “external id” (that’s the id of the user in Wordpress which is stored in Discourse via the sso code) and pass that to mixpanel. So, the code for this would look something like:
How can we do this? Thanks!