Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Insights

Hierarchy

  • Insights

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Create an Insights object according to configuration with all data from the store which is due for offloading to the server.

    Parameters

    • conf: Configuration
       The current configuration.
      
    • store: Store
       The current measurement and consents store.
      

    Returns Insights

Properties

events

events: EventData[] = []

Event data points.

idsite

idsite: number = 0

Matomo site ID.

Optional lang

lang: string = ...

Preferred user languages as an HTTP Accept header.

Optional ua

ua: string = ...

User Agent string.

visits

visits: VisitData[] = []

Visit data points.

Accessors

isEmpty

  • get isEmpty(): boolean
  • Returns boolean

Methods

clean

  • clean(store: Store): void
  • Removes all visits and events from the given Store, which are also available in here.

    This should be called, when all Insights were offloaded at the server successfully.

    Parameters

    • store: Store
       The store where the `Visit`s and `Event`s in here came from.
      

    Returns void

Generated using TypeDoc