Namespace: GA

GA

Google Analytics tracking

Source:

Members


<static, constant> _EVENT :Object

Event types

Type:
  • Object
Properties:
Name Type Description
INSTALLED Chrome.GA.Event

extension installed

UPDATED Chrome.GA.Event

extension updated

MENU Chrome.GA.Event

menu selected

TOGGLE Chrome.GA.Event

setting-toggle

LINK Chrome.GA.Event

setting-link

TEXT Chrome.GA.Event

setting-text

SLIDER_VALUE Chrome.GA.Event

setting-slider value

SLIDER_UNITS Chrome.GA.Event

setting-slider unit

BUTTON Chrome.GA.Event

button click

ICON Chrome.GA.Event

toolbar icon click

CHECK Chrome.GA.Event

checkbox click

KEY_COMMAND Chrome.GA.Event

keyboard shortcut

Source:

Methods


<private, static> _onLoad()

Event: called when document and resources are loaded
Initialize Google Analytics

Source:

<static> error( [label] [, action])

Send an error

Parameters:
Name Type Argument Default Description
label string <optional>
<nullable>
'unknown'

override label

action string <optional>
<nullable>
'unknownMethod'

override action

Source:

<static> event(event [, label] [, action])

Send an event

Parameters:
Name Type Argument Default Description
event Chrome.GA.Event

the event type

label string <optional>
<nullable>
null

override label

action string <optional>
<nullable>
null

override action

Source:

<static> exception(exception [, message] [, fatal])

Send an exception

Parameters:
Name Type Argument Default Description
exception Object

the exception

message string <optional>
<nullable>
null

the error message

fatal boolean <optional>
true

true if fatal

Source:

<static> initialize(trackingId, appName, appId, appVersion)

Initialize analytics

Parameters:
Name Type Description
trackingId string

tracking id

appName string

extension name

appId string

extension Id

appVersion string

extension version

Source:

<static> page(page)

Send a page

Parameters:
Name Type Description
page string

page path

Source:

Type Definitions


Event

Google Analytics Event

Type:
  • Object
Properties:
Name Type Description
eventCategory string

category

eventAction string

action

eventLabel string

label

Source: