mobiqo-capacitor
Version:
Mobiqo SDK for Capacitor apps - Mobile analytics and user tracking
44 lines (43 loc) • 1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MobiqoEvent = void 0;
/**
* 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);
* ```
*/
var MobiqoEvent;
(function (MobiqoEvent) {
/** Button or UI element tapped/clicked */
MobiqoEvent["CLICK"] = "click";
/** User performs an action */
MobiqoEvent["ACTION"] = "action";
/** A screen/page is displayed to the user */
MobiqoEvent["SCREEN_VIEW"] = "screen_view";
/** Paywall or subscription screen is shown */
MobiqoEvent["PAYWALL_VIEW"] = "paywall_view";
/** User closes or dismisses paywall */
MobiqoEvent["PAYWALL_DISMISS"] = "paywall_dismiss";
/** User initiates a purchase flow */
MobiqoEvent["PURCHASE_ATTEMPT"] = "purchase_attempt";
/** In-app purchase completed successfully (if not using RevenueCat webhook) */
MobiqoEvent["PURCHASE_SUCCESS"] = "purchase_success";
/** Form or input field submitted */
MobiqoEvent["FORM_SUBMIT"] = "form_submit";
/** User navigates to another screen/section */
MobiqoEvent["NAVIGATION"] = "navigation";
/** A handled error or issue occurred */
MobiqoEvent["ERROR"] = "error";
/** Custom event type for user-defined cases */
MobiqoEvent["CUSTOM"] = "custom";
})(MobiqoEvent || (exports.MobiqoEvent = MobiqoEvent = {}));