I added [[ https://www.mediawiki.org/wiki/Extension:EventLogging/Guide#QA | the JS to warn about validation errors]] and on testwiki when I click a TOC link on a testwiki page [[ https://test.wikipedia.org/wiki/Wikip%C3%A9dia:Escolha_do_artigo_em_destaque/Teste4 | sample ]] I get
[undefined] Missing property "action"
[undefined] Value null is the wrong type for property "duration" (integer expected)
With ?debug=1 the console shows is:
undefined] Value null is the wrong type for property "duration" (integer expected)
ext.eventLogging.core.js()ext.eve...core.js (line 302)
mw.trackSubscribe/<()load.ph...193750Z (line 10826)
jQuery.Callbacks/fire()load.ph...193750Z (line 3143)
jQuery.Callbacks/self.fireWith()load.ph...193750Z (line 3255)
jQuery.Callbacks/self.fire()load.ph...193750Z (line 3262)
mw.track()load.ph...193750Z (line 10803)
mw.eventLog.prepare()ext.eve...core.js (line 185)
mw.eventLog.logEvent()ext.eve...core.js (line 295)
eventLogging.logEvent()ext.pop...ging.js (line 78)
mw.popups.render.closePopup()ext.pop...erer.js (line 167)
mw.popups.render.render()ext.pop...erer.js (line 76)
mw.popups.setupTriggers/<()ext.pop...core.js (line 155)
jQuery.event.dispatch()load.ph...193750Z (line 4664)
jQuery.event.add/elemData.handle()load.ph...193750Z (line 4333)
The sent event is:
{
"event": {
"duration": null,
"sessionId": "kq0CRGu5wAyxMwtmshiIhyVa1KRplBNJ"
},
"clientValidated": false,
"revision": 7536956,
"schema": "Popups",
"webHost": "test.wikipedia.org",
"wiki": "testwiki"
}
Note "clientValidated": **false**`