How to use the expo-analytics-amplitude.clearUserProperties function in expo-analytics-amplitude

To help you get started, we’ve selected a few expo-analytics-amplitude 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 expo / expo / home / api / Analytics.ts View on Github external
export function identify(id: string | null, options?: TrackingOptions) {
  initialize();
  const properties = normalizeTrackingOptions(options);

  if (id) {
    Amplitude.setUserId(id);
    if (properties) {
      Amplitude.setUserProperties(properties);
    }
  } else {
    Amplitude.clearUserProperties();
  }
}

expo-analytics-amplitude

Provides access to Amplitude (https://amplitude.com/) mobile analytics. This module wraps Amplitude-iOS (https://github.com/amplitude/Amplitude-iOS) and Android (https://github.com/amplitude/Amplitude-Android) SDKs.

MIT
Latest version published 3 years ago

Package Health Score

70 / 100
Full package analysis