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?