Hierarchy

  • DataPoint
    • Event

Constructors

  • Parameters

    • category: string | EventData

      The event category or an object containing all arguments. Must not be empty. (eg. Videos, Music, Games...)

    • Optional action: string

      The event action. Must not be empty. (eg. Play, Pause, Duration, Add Playlist, Downloaded, Clicked...) OPTIONAL if provided via an object as first argument.

    • Optional name: string

      The event name. OPTIONAL.

    • Optional value: number

      The event value. OPTIONAL.

    • Optional campaignId: string

      The campaign ID this data point is for. OPTIONAL if constructed with an object instead.

    • Optional times: number
    • Optional first: Dayjs
    • Optional last: Dayjs

    Returns Event

Properties

action: string
campaignId: string
category: string
first: Dayjs
last: Dayjs
name: undefined | string
times: number
value: undefined | number

Methods

  • Returns string

Generated using TypeDoc