Wrapped tracking calls in waitForVendorApi

Prevent "mixpanel is not defined" errors if angulartics loads before the mixpanel library.