Addshore updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
Example of mw.track in use can be found in WikibaseQualityConstraints.
```
mw.track( 'counter.MediaWiki.wikibase.quality.constraints.gadget.loadEntity' );
```
For our metrics we will use the metric names MediaWiki.wikibase.repo.ui.termBox.(moreLanguages|lessLanguages|allLanguages)
The JS will just have to remember if it has already counted the click for each of the 3 cases so that a single request will only ever log 1 click of each link type.
TBD cleanup definitions of pageviews (js no js etc?)
...
This can be done with mw.track in _javascript_.[[ https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw-method-track | mw.track in _javascript_ ]].Example of mw.track in use can be found in WikibaseQualityConstraints.
```
mw.track( 'counter.MediaWiki.wikibase.quality.constraints.gadget.loadEntity' );
```
For our metrics we will use the metric names MediaWiki.wikibase.repo.ui.termBox.(moreLanguages|lessLanguages|allLanguages)
The JS will just have to remember if it has already counted the click for each of the 3 cases so that a single request will only ever log 1 click of each link type.
TBD cleanup definitions of pageviews (js no js etc?)
TASK DETAIL
EMAIL PREFERENCES
To: Addshore
Cc: Lydia_Pintscher, D3r1ck01, Aklapper, WMDE-leszek, Lea_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, Jonas, Wikidata-bugs, aude, Mbch331
Cc: Lydia_Pintscher, D3r1ck01, Aklapper, WMDE-leszek, Lea_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs