Skip to main content
Go to Latest
class Event
implements IEvent
extends HitAbstract
import { Event } from "https://deno.land/x/flagship_io_js_sdk@3.0.11/mod.ts";

Constructors

new
Event(event: Omit<IEvent, "type">)

Properties

private
_action: string
private
_category: EventCategory
private
_label: string
private
_value: number
action: string

Specify Event name that will also serve as the KPI that you will have inside your reporting

category: EventCategory

Specify Action Tracking or User Engagement.

label: string

Specify additional description of event.

value: number

Specify the monetary value associated with an event (e.g. you earn 10 to 100 euros depending on the quality of lead generated).

NOTE: this value must be non-negative.

Methods

getErrorMessage(): string
isReady(checkParent?): boolean
toApiKeys(): any
toObject(): Record<string, unknown>