klaviyo-react-native-sdk
Version:
Official Klaviyo React Native SDK
42 lines (37 loc) • 1.26 kB
JavaScript
;
import { KlaviyoReactNativeSdk } from "./KlaviyoReactNativeSdk.js";
const {
EVENT_NAMES
} = KlaviyoReactNativeSdk.getConstants();
/**
* EventName is a convenience enum for the names of common events that can be tracked.
*/
export let EventName = function (EventName) {
/**
* The 'Added to Cart' event is used to track when a user adds a product to their cart.
*/
EventName[EventName["ADDED_TO_CART_METRIC"] = EVENT_NAMES.ADDED_TO_CART] = "ADDED_TO_CART_METRIC";
/**
* The 'Opened App' event is used to track when a user opens the app.
*/
EventName[EventName["OPENED_APP_METRIC"] = EVENT_NAMES.OPENED_APP] = "OPENED_APP_METRIC";
/**
* The 'Started Checkout' event is used to track when a user starts the checkout process.
*/
EventName[EventName["STARTED_CHECKOUT_METRIC"] = EVENT_NAMES.STARTED_CHECKOUT] = "STARTED_CHECKOUT_METRIC";
/**
* The 'Viewed Product' event is used to track when a user views a product.
*/
EventName[EventName["VIEWED_PRODUCT_METRIC"] = EVENT_NAMES.VIEWED_PRODUCT] = "VIEWED_PRODUCT_METRIC";
return EventName;
}({});
/**
* Type for event properties
*/
/**
* Interface for an event
*/
/**
* Interface for the Klaviyo Event API
*/
//# sourceMappingURL=Event.js.map