checking mixpanel from window variable