Expand all

ve.init.mw.ArticleTargetEvents

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

Source:
Initialization MediaWiki Article Target Analytics.

Methods

onFirstTransaction() #

Track when the user makes their first transaction

Source:
Track when the user makes their first transaction

onNoChanges() #

Track when the diff request detects no changes

Source:
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 ve.init.mw.ArticleTarget#saveComplete

Source:
Track when the save is complete

onSaveInitiated() #

Track when document save is initiated

Source:
Track when document save is initiated

onSaveReview() #

Track time elapsed from beginning of save workflow to review

Source:
Track time elapsed from beginning of save workflow to review

onSaveWorkflowBegin() #

Track when user begins the save workflow

Source:
Track when user begins the save workflow

onSaveWorkflowEnd() #

Track when user ends the save workflow

Source:
Track when user ends the save workflow

onSerializeComplete() #

Track when serialization is complete in review workflow

Source:
Track when serialization is complete in review workflow

onSerializeError() #

Track when there is a serialization error

Source:
Track when there is a serialization error

onShowChanges() #

Track when the user enters the review workflow

Source:
Track when the user enters the review workflow

onShowChangesError() #

Track when the diff request fails in the review workflow

Source:
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.

Source:
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

Source:
Target specific ve.track wrapper

trackActivationComplete() #

Record activation being complete.

Source:
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

Source:
Record activation having started.

trackSaveError(code) #

Track a save error by type

Parameters:

Name Type Description
code string

Error code

Source:
Track a save error by type

trackTiming(topic, data) #

Target specific ve.track wrapper, focused on timing

Parameters:

Name Type Description
topic string

Event name

data Object

Additional data describing the event, encoded as an object

Source:
Target specific ve.track wrapper, focused on timing