How to use the expo-analytics-segment.trackWithProperties function in expo-analytics-segment

To help you get started, we’ve selected a few expo-analytics-segment 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 Flaque / quirk / src / stats.ts View on Github external
export function log(label: string, properties?: object) {
  const args = { label, properties };
  if (isInDev()) {
    console.log(args);
  } else {
    Segment.trackWithProperties("log", args);
  }
}
github Flaque / quirk / src / stats.ts View on Github external
export function subscriptionUnverified(reason: "expired" | "never-bought") {
  Segment.trackWithProperties("subscription_unverified", {
    reason,
  });
}
github Flaque / quirk / src / stats.ts View on Github external
export function userFinishedCheckup(mood: "good" | "neutral" | "bad") {
  Segment.trackWithProperties("user_finished_checkup", {
    mood,
  });
}
github Flaque / quirk / src / stats.ts View on Github external
export function subscriptionFoundInCache(value: string) {
  Segment.trackWithProperties("subscription_found_in_cache", {
    value,
  });
}
github Flaque / quirk / src / stats.ts View on Github external
export function subscriptionVerified(
  method: "cache" | "online" | "grandfathered"
) {
  Segment.trackWithProperties("subscription_verified", {
    method,
  });
}
github Flaque / quirk / src / stats.ts View on Github external
export function userSubscribed(expirationUnixTimestamp: number) {
  Segment.trackWithProperties("user_subscribed", {
    expirationDate: dayjs.unix(expirationUnixTimestamp).format(),
  });
}
github Flaque / quirk / src / stats.ts View on Github external
export function userRequestedPincodeReset(code: string) {
  Segment.trackWithProperties("user_requested_code", {
    code,
  });
}
github Flaque / quirk / src / stats.ts View on Github external
export function userEncounteredPaymentError(err: string) {
  Segment.trackWithProperties("user_encountered_payment_error", {
    error: err,
  });
}