Forum:Code to add sitewide counter

After reading http://community.wikia.com/wiki/Forum:Need_help_adding_counter_to_all_pages I decided it was time to go ahead and add that sitewide counter that I've long been thinking of.

The sitemeter website says I need to add

  

to every page so I added

@import url("http://s21.sitemeter.com/js/counter.js?site=s52ReligionWiki&action=raw&ctype=text/css"); $(function($) {	$(document.body).append('  '); });

to the sitewide js page.

It doesnt seem to be working.

Did I do something wrong?

Granpa (talk) 14:25, August 17, 2012 (UTC)


 * OK, so I changed it to

importScriptURI("http://s21.sitemeter.com/js/counter.js?site=s52ReligionWiki&action=raw&ctype=text/javascript");


 * and at first glance it looks like that might be what it needed
 * Granpa (talk) 16:22, August 17, 2012 (UTC)


 * The counter is loading and appears to be functioning perfectly and so is the javascript.
 * Maybe I'll write a "how to" over at the how to wiki.
 * Granpa (talk) 02:14, August 19, 2012 (UTC)