How to use the expo-analytics-amplitude.setUserId 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 janaagaard75 / expo-and-typescript / src / AmplitudeScreen.tsx View on Github external
constructor(props: {}) {
    super(props);

    Amplitude.initialize("31ef1b42450bb6c4372b30524c69b9a9");
    Amplitude.setUserId("1");
    Amplitude.setUserProperties({
      age: 42
    });
  }
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