Currently, Mediawiki has the ability to add items to the X-Analytics header via a nice little extension written by Ori. This is deployed in production and is working just fine.
However, it is not activated for requests that come from mobile apps. In order to reliably count page views, we need to count based on page_id, and not a page title extracted from the request uri path. To include mobile apps page views in these counts, mobile apps requests will need to have these fields added to their X-Analytics headers.
I don't know much about how mobile apps make requests. AFAIK, this could be done in the apps themselves, or at the Mediawiki API level. Since Mediawiki already supports this, perhaps it is better to do so there.
Thoughts? Anyone know how we can actually do this?