Thread:Project:Support desk/Special:PopularPages - but only for the last 30 days?/reply (7)

You can use one of the google analytics extensions - Extension:Google_Analytics_Integration.

Hacky version: You can place arbitrary html in the page MediaWiki:Copyright which will get included in most pages (On direct page views, so not when editing, and not when viewing special pages).

Otherwise if you can write JS, you can add stuff to MediaWiki:Common.js which gets executed on every page.