Forum:Hit counter

Is there a way to put a hit counter on a wiki with Monaco skin? Swa n nie §  ♣  ☼ 12:58, 8 July 2008 (UTC)
 * Just get Google Analytics. --LordTBT Talk! 21:29, 8 July 2008 (UTC)
 * And how does one incorporate Google Analytics into Wikia? &mdash;Al E. (talk) 12:23, 10 July 2008 (UTC)

= the three penny hitcounter =

Here is a super simple cheap no-frills hit counter, for monaco.

I cant even find the forum anymore where someone talked about this.. but here goes.

Step 1. Get an account on a free hitcounter site that works off of plain old image links, like www.hitslog.com.

Step 2. Get the URL for the image that the logging site wants you to use. For example, for hitslog.com, you will be given a bunch of 'codes' after regsitration. The 'code' you need to get is the one they call the 'myspace' code (myspace restricts a lot of the html you can use, as does wikia). Now look into that code for a URL, and grab it.

The URL will look something like this: http://h2.hitslog.com/myspace/123456.png

But dont use 123456, use the number that hitslog.com gives you. 123456 i the kind of code an idiot would put on his luggage.

Step 3. Edit your Monaco.css file.

IE, go to http://yourwikia.wikia.com/wiki/MediaWiki:Monaco.css

Now, edit it, and put this in:

background-image: url(http://h2.hitslog.com/myspace/101172.png); height: 1px; width: 1px; }
 * 1) accent_graphic2 {

This makes a tiny, tiny 1 pixel by 1 pixel image on the righthand side of your wikia, that loads whenever any page of your wikia is accessed and generates a hit. I guess I could have figured out a better place to put this, but I didn't feel like delving into 18 levels of CSS and media wiki to try to figure out where to put it.

Step 4. Activate your Mono.css file.

Believe it or not, Monaco.css is not actually Monaco. Monaco.css is for 'custom monaco', which you have to activate by going into your Special Pages as admin, then click on Preferences, then down at the bottom change the dropdown menu from Sapphire or whatever to Custom.

Step 5. Trust, but Verify.

Browse your wiki a dozen times or so. Have friends browse it. Go to the library and browse it from there. Now log back into your hit log website, ie, hitslog.com in this case. After you login you should be able to get the statistics for your hit counter, and it will show you very basic information... like the OS, the browser, how many hits in the last 24 hours, last 7 days, how many hits total, etc. It does not tell where they came from, their IP, or any of that.

Step 6. Edit these instructions if you have a better idea.

That's what wiki is all about. Until wikia integrates google analytics or whatever, we are on our own people!

(PS, if you could... have someone .. change the pass code on my luggage...)

Decora 00:35, 10 February 2009 (UTC)