alxndrsn/grails-mixpanel-plugin — pull request #9 by vaneyck (2013-07-19 07:42:31+00:00)
Title: The distinctId is computed before triggering grails async event that will send the mixpanel event

I modified the MixpanelService so that the distinctId is computed before triggering the grails async event that will send the mixpanel event. This is because one may be getting the distinctId and the value may be dependent on that thread e.g when using the grails spring security plugin to get the current logged in user.