I’m thinking about using the free statcounter service on my site, but it requires that I add a little bit of javascript to each page. If I was running a single theme, I could probably find all the appropriate </body> tags and just paste in the statcounter code. But I’m trying to support multiple themes; besides, where’s the fun in cutting and pasting a bunch of code? Also, what if I need to change the statcounter code for some reason? So I think the Right Thing to do here is come up with a plugin for the wp_footer action which will insert some user-specified code, (in this case, my statcounter javascript). I haven’t found a plugin for statcounter, so I’ll be searching for a generic footer plugin. If I can’t find anything, I guess I’ll have to roll my own.
Tags
- apple
- arden_park
- bike
- boardgamegeek
- boardgames
- book
- bookcrossing
- boot_failure
- cabinetry
- csus
- demolition
- electrical
- framing
- gymnastics
- hacking
- ham_radio
- harry_potter
- how-to
- humor
- hvac
- joseph
- kitchen
- liberal
- library
- mac
- meetup
- obcz
- plumbing
- politics
- powerbook
- quilt_shop
- review
- roof
- sacramento
- sonicchicken_blog
- spam_karma
- stucco
- subversion
- sysadmin
- tags_plugin
- thanksgiving
- theme
- tile
- web
- wordpress
Recent comments
Archives
About this blog…
I use this platform to share things that are of interest to me or things I'll want to reference later. Occasionally other people like these posts, hence "Shared Interests".
What might you find here?
- Problems I've solved (mostly computer- or network related).
- Recipes and cooking-related posts.
- Hobbies and projects.
- Our remodeling experience.
- Local (Sacramento) information.
- Anything that strikes my fancy.
Yeah I’m on a similar problem here myself. Let me know if you have any luck huh?
Sorry, Bitcloud–I haven’t found anything yet, so it looks like it’s time for me to learn how to write plugins. This could get ugly…
I have a rudimentary plugin for this. See the comments on this article.
Pingback: SonicChicken weblog » Blog Archive » Footer plugin requirements, notes
Pingback: SonicChicken weblog » Blog Archive » Statcounter on my WordPress blog
try this:
http://citizenk.wordpress.com/2005/11/14/statcounter-for-wordpress/