mobiqo-capacitor
Version:
Mobiqo SDK for Capacitor apps - Mobile analytics and user tracking
40 lines (39 loc) • 1.43 kB
TypeScript
/**
* Event types for Mobiqo analytics tracking
*
* Use these predefined event types to categorize user interactions and behaviors.
* This helps with analytics reporting and filtering in the Mobiqo dashboard.
*
* @example
* ```typescript
* import { MobiqoEvent } from 'mobiqo-capacitor';
*
* // Track different types of events
* await mobiqo.trackEvent('subscribe_button', MobiqoEvent.CLICK, { location: 'home' });
* await mobiqo.trackEvent('paywall_shown', MobiqoEvent.PAYWALL_VIEW);
* ```
*/
export declare enum MobiqoEvent {
/** Button or UI element tapped/clicked */
CLICK = "click",
/** User performs an action */
ACTION = "action",
/** A screen/page is displayed to the user */
SCREEN_VIEW = "screen_view",
/** Paywall or subscription screen is shown */
PAYWALL_VIEW = "paywall_view",
/** User closes or dismisses paywall */
PAYWALL_DISMISS = "paywall_dismiss",
/** User initiates a purchase flow */
PURCHASE_ATTEMPT = "purchase_attempt",
/** In-app purchase completed successfully (if not using RevenueCat webhook) */
PURCHASE_SUCCESS = "purchase_success",
/** Form or input field submitted */
FORM_SUBMIT = "form_submit",
/** User navigates to another screen/section */
NAVIGATION = "navigation",
/** A handled error or issue occurred */
ERROR = "error",
/** Custom event type for user-defined cases */
CUSTOM = "custom"
}