Extension talk:EventLogging/Programming

Jump to navigation Jump to search

About this board

How to require mw.eventLog?

1
Adamw (talkcontribs)

This guidance is mysterious to me,

> require your schema wherever you need to log events (it will pull in the ext.eventLogging module which contains the mw.eventLog object).

How do I "require" a schema? I've found that mw.eventLog is undefined in my onload handler, so something is indeed missing from my code.

Reply to "How to require mw.eventLog?"
Samwilson (talkcontribs)

Is the section about logging clicks on links out of date? It seems that (for most browsers) sendBeacon() is now used, and so should work even on clicking a link.

Reply to "Logging clicks on links"
There are no older topics