Thread:Project:Support desk/How to get Piwik code into MobileFrontend?/reply (4)

You could put the code in your site's MediaWiki:Common.js and that would be used for both mobile and regular interfaces. Make sure $wgUseSiteJs is true, though.

If/when the bug gets fixed, though, you'll want to remove the code from your Common.js, of course.