Google Analytics tracking
- Source:
Members
-
<static, constant> _EVENT :Object
-
Event types
Type:
- Object
- Source:
Properties:
Name Type Description INSTALLEDChrome.GA.Event extension installed
UPDATEDChrome.GA.Event extension updated
MENUChrome.GA.Event menu selected
TOGGLEChrome.GA.Event setting-toggle
LINKChrome.GA.Event setting-link
TEXTChrome.GA.Event setting-text
SLIDER_VALUEChrome.GA.Event setting-slider value
SLIDER_UNITSChrome.GA.Event setting-slider unit
BUTTONChrome.GA.Event button click
ICONChrome.GA.Event toolbar icon click
CHECKChrome.GA.Event checkbox click
KEY_COMMANDChrome.GA.Event keyboard shortcut
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 labelstring <optional>
<nullable>
'unknown' override label
actionstring <optional>
<nullable>
'unknownMethod' override action
- Source:
-
<static> event(event [, label] [, action])
-
Send an event
Parameters:
Name Type Argument Default Description eventChrome.GA.Event the event type
labelstring <optional>
<nullable>
null override label
actionstring <optional>
<nullable>
null override action
- Source:
-
<static> exception(exception [, message] [, fatal])
-
Send an exception
Parameters:
Name Type Argument Default Description exceptionObject the exception
messagestring <optional>
<nullable>
null the error message
fatalboolean <optional>
true true if fatal
- Source:
-
<static> initialize(trackingId, appName, appId, appVersion)
-
Initialize analytics
Parameters:
Name Type Description trackingIdstring tracking id
appNamestring extension name
appIdstring extension Id
appVersionstring extension version
- Source:
-
<static> page(page)
-
Send a page
Parameters:
Name Type Description pagestring page path
- Source:
Type Definitions
-
Event
-
Google Analytics Event
Type:
- Object
- Source:
Properties:
Name Type Description eventCategorystring category
eventActionstring action
eventLabelstring label