How to use the react-native-mixpanel.reset function in react-native-mixpanel

To help you get started, we’ve selected a few react-native-mixpanel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mikelambert / dancedeets-monorepo / mobile / js / store / track.js View on Github external
export function trackLogout() {
  if (!trackingEnabled) {
    return;
  }
  track('Logout');
  // Mixpanel.removePushToken();
  Mixpanel.reset();
  firebase.analytics().setUserId(null);
}
github DefinitelyTyped / DefinitelyTyped / types / react-native-mixpanel / react-native-mixpanel-tests.ts View on Github external
Mixpanel.createAlias('123456');
Mixpanel.identify('123456');
Mixpanel.set({ $email: 'elvis@email.com' });
Mixpanel.setOnce({ $email: 'elvis@email.com', Created: new Date().toISOString() });
Mixpanel.timeEvent('Image Upload');
Mixpanel.track('Image Upload');
Mixpanel.registerSuperProperties({ 'Account type': 'Free', 'User Type': 'Vendor' });
Mixpanel.registerSuperPropertiesOnce({ Gender: 'Female' });
Mixpanel.trackCharge(399);
Mixpanel.trackChargeWithProperties(399, { product: 'ACME Wearable tech' });
Mixpanel.increment("Login Count", 1);
Mixpanel.setPushRegistrationId('1234567890abc');
Mixpanel.initPushHandling('123456666');
Mixpanel.clearPushRegistrationId();
Mixpanel.addPushDeviceToken('1234567890abc');
Mixpanel.reset();
Mixpanel.getDistinctId((id) => (id));
github mikelambert / dancedeets-monorepo / js / store / track.js View on Github external
export function trackLogout() {
  if (!trackingEnabled) {
    return;
  }
  track('Logout');
  //Mixpanel.removePushToken();
  Mixpanel.reset();
  Analytics.setUserId(null);
}