Constructor
new ve.init.mw.ArticleTargetEvents(target)
#
Initialization MediaWiki Article Target Analytics.
Parameters:
Name | Type | Description |
---|---|---|
target |
ve.init.mw.ArticleTarget | Target class to log events for |
Methods
onFirstTransaction()
#
Track when the user makes their first transaction
onNoChanges()
#
Track when the diff request detects no changes
onSaveComplete(data)
#
Track when the save is complete
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Save data from the API, see |
onSaveInitiated()
#
Track when document save is initiated
onSaveReview()
#
Track time elapsed from beginning of save workflow to review
onSaveWorkflowBegin()
#
Track when user begins the save workflow
onSaveWorkflowEnd()
#
Track when user ends the save workflow
onSerializeComplete()
#
Track when serialization is complete in review workflow
onSerializeError()
#
Track when there is a serialization error
onShowChanges()
#
Track when the user enters the review workflow
onShowChangesError()
#
Track when the diff request fails in the review workflow
recordLastTransactionTime()
#
Record the time of the last transaction in response to a 'transact' event on the document.
track(topic, data)
#
Target specific ve.track wrapper
Parameters:
Name | Type | Description |
---|---|---|
topic |
string | Event name |
data |
Object | Additional data describing the event, encoded as an object |
trackActivationComplete()
#
Record activation being complete.
trackActivationStart([startTime])
#
Record activation having started.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
startTime |
number |
optional |
Timestamp activation started. Defaults to current time |
trackSaveError(code)
#
Track a save error by type
Parameters:
Name | Type | Description |
---|---|---|
code |
string | Error code |