Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function log(label: string, properties?: object) {
const args = { label, properties };
if (isInDev()) {
console.log(args);
} else {
Segment.trackWithProperties("log", args);
}
}
export function userDismissedFeedback() {
Segment.track("user_dismissed_feedback");
}
export function userCantOpenLink() {
Segment.track("user_cant_open_link");
}
export function userDismissedSurvey() {
Segment.track("user_dismissed_survey");
}
export function userReviewed() {
Segment.track("user_reviewed");
}
export function userScheduledFollowUp() {
Segment.track("user_scheduled_follow_up");
}
export function subscriptionGivenForFreeDueToError() {
Segment.track("subscription_given_for_free_due_to_error");
}
export function userFeltTheSameOnFollowUp() {
Segment.track("user_felt_the_same_on_follow_up");
}
export function userSetPincode() {
Segment.track("user_set_pincode");
}
export function userCanceledPayment() {
Segment.track("user_canceled_payment");
}