Forum:Need help adding counter to all pages

On the Nintendo Wiki I am trying to add an invisible counter to all pages that counts views. I found a thread here on how to do this, but that didn't work. When I did what that thread said all of the Javascript on the Common.js stopped working. Does anyone know how to do this?


 * My Tests
 * MediaWiki:Common.js
 * MediaWiki:Common.css


 * I just need to add the code to each page of the wiki. Does anyone know how to do that?


 * What error do you get in the web console? Other than the fact that you didn't close the  tag in the HTML, I don't see anything overtly wrong with it. OTOH, you're using RevealAnonIP wrong, it's causing a reference error which may mean that the stat counter code never actually runs [due to crashing right before it]. Lunarity 03:14, August 14, 2012 (UTC)


 * I didn't get an error, just all of the javascript in the Common.js stopped working (show/hide tables, IP reveal, etc.). What do I have to input to fix it?


 * You may want to learn how to use the Web Console if Firefox and Chrome, it's very useful for finding out what you did wrong. First, remove . Second, I actually misread the code, you've broken it across 2 lines which is syntactically invalid.


 * It should work now, unless there's something else wrong. Lunarity 02:35, August 15, 2012 (UTC)


 * It's working now. Thanks!


 * How to add it to the css so that i dont have to put it on each page?
 * Kerry Stapleton (talk) 07:16, August 15, 2012 (UTC)