We should have a working implementation of the beacon endpoint in MediaWiki for third-party users who may not be using Varnish.
It should be pretty easy to do. I think this snippet should do the trick, but I'm not sure where to put it.
wfDebugLog( 'EventLogging', $_SERVER['QUERY_STRING'] ); while ( ob_get_level() ) { ob_end_clean(); } header( 'HTTP/1.1 204 No Content' );
Version: unspecified
Severity: normal