fix issue with mixpanel, and ajax if it fires before analytics loads