I want to log / track unique page visits to a page in a mediawiki wiki, but I can't ask the this mediawiki admin to give me the data. If this was a page on my website I would just use statcounter.com. But it is a mediawiki wikipage that I contribute to and want to get the statistics.
migrated from stackoverflow.com Mar 7 '11 at 18:03
This question came from our site for professional and enthusiast programmers.
If you're able to install extensions on the site at all then you could try the one for Google Analytics at http://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration
Otherwise, another solution might be to try a "web beacon". That's where you insert a resource from an external site into a page so you can track the hits for it when pages are requested by a browser. For example, you could add an image to a post with a URL like http://www.yourdomain.com/tracking_pixel.gif then count the requests for it. However, this depends on the setup of MediaWiki because the ability to insert external images into a page might have been disabled. You can read more about that at http://www.mediawiki.org/wiki/Manual:Linked_images
Also note that the requests for the image won't be unique so you will need to attach a cookie to it so you can identify unique users.
There isn't any general way to get unique visits in MediaWiki. The closest you can come is to query the API with a query like
Your best bet is to ask the admin for statistics, or ask them to install your statcounter.com web bug or the like.