How to use expo-analytics-segment - 10 common examples

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 userDismissedFeedback() {
  Segment.track("user_dismissed_feedback");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userCantOpenLink() {
  Segment.track("user_cant_open_link");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userDismissedSurvey() {
  Segment.track("user_dismissed_survey");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userReviewed() {
  Segment.track("user_reviewed");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userScheduledFollowUp() {
  Segment.track("user_scheduled_follow_up");
}
github Flaque / quirk / src / stats.ts View on Github external
export function subscriptionGivenForFreeDueToError() {
  Segment.track("subscription_given_for_free_due_to_error");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userFeltTheSameOnFollowUp() {
  Segment.track("user_felt_the_same_on_follow_up");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userSetPincode() {
  Segment.track("user_set_pincode");
}
github Flaque / quirk / src / stats.ts View on Github external
export function userCanceledPayment() {
  Segment.track("user_canceled_payment");
}