Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
41 lines
1.6 KiB
TypeScript
41 lines
1.6 KiB
TypeScript
export const ANALYTICS_EVENTS = {
|
|
AUTH_OPENED: 'auth_opened',
|
|
OTP_REQUESTED: 'otp_requested',
|
|
LOGIN: 'login',
|
|
AUTH_FAILED: 'auth_failed',
|
|
SIGN_UP: 'sign_up',
|
|
EVENT_FILTER_APPLIED: 'event_filter_applied',
|
|
SELECT_ITEM: 'select_item',
|
|
VIEW_ITEM: 'view_item',
|
|
EVENT_CREATE_STARTED: 'event_create_started',
|
|
EVENT_CREATED: 'event_created',
|
|
BOOKING_CREATED: 'event_booking_created',
|
|
BOOKING_CANCELLED: 'booking_cancelled',
|
|
BEGIN_CHECKOUT: 'begin_checkout',
|
|
PURCHASE: 'purchase',
|
|
JOIN_WAITLIST: 'join_waitlist',
|
|
ADD_TO_WISHLIST: 'add_to_wishlist',
|
|
REMOVE_FROM_WISHLIST: 'remove_from_wishlist',
|
|
FOLLOW_ORGANIZER: 'follow_organizer',
|
|
ORGANIZER_CONTACT_CLICK: 'organizer_contact_click',
|
|
APPLY_DISCOUNT: 'apply_discount',
|
|
SHARE: 'share',
|
|
REVIEW_SUBMITTED: 'review_submitted',
|
|
REVIEW_UPDATED: 'review_updated',
|
|
MESSAGE_SENT: 'message_sent',
|
|
PUSH_NOTIFICATION_ENABLED: 'push_notification_enabled',
|
|
NOTIFICATION_OPENED: 'notification_opened',
|
|
IDENTITY_VERIFICATION_SUBMITTED: 'identity_verification_submitted',
|
|
WITHDRAWAL_REQUESTED: 'withdrawal_requested',
|
|
EVENT_PUBLISHED: 'event_publish',
|
|
} as const
|
|
|
|
type AnalyticsValue = string | number | boolean | null | undefined | AnalyticsValue[] | { [key: string]: AnalyticsValue }
|
|
type AnalyticsParams = Record<string, AnalyticsValue>
|
|
|
|
/** Consumer analytics are intentionally disabled in the admin application. */
|
|
export function trackAnalyticsEvent(_event: string, _params: AnalyticsParams = {}) {}
|
|
|
|
/** Consumer analytics are intentionally disabled in the admin application. */
|
|
export function trackAnalyticsEventOnce(_event: string, _uniqueId: string, _params: AnalyticsParams = {}) {}
|