analyticsService

Methods

(static) noGA() → {boolean}

Check whether Google Analytics is disabled.

Source:
Returns:
Type:
boolean

(static) sendPageLoad()

Send Google Analytics timing hit for page load.

Source:

(static) sendTimingEvent(data)

Send configurable Google Analytics timing hit.

Source:
See:
Parameters:
Name Type Description
data Object
Name Type Description
category string

A string for categorizing all user timing variables into logical groups (e.g. JS Dependencies).

var string

The number of milliseconds in elapsed time to report to Google Analytics (e.g. 20).

value number

A string that can be used to add flexibility in visualizing user timings in the reports (e.g. Google CDN).

(static) sendEvent(data)

Send configurable Google Analytics event hit.

Source:
See:
Parameters:
Name Type Description
data Object
Name Type Description
category string

Typically the object that was interacted with (e.g. Video).

action string

The type of interaction (e.g. play).

label string

Useful for categorizing events (e.g. Fall Campaign).

value number

A numeric value associated with the event (e.g. 42).