SlimStat via JavaScript


Help wanted!

Probably one of the most commonly-requested features for SlimStat is to be able to call it via JavaScript.

If you would like to help test this new feature, please download and extract slimstat-js.zip. It should all be fairly self-explanatory.

The simplest thing to do is to unzip it to the /slimstat-js/ directory on your site, and then include slimstat.js in all pages you wish to track. Note that you should stop including the PHP version of SlimStat, otherwise each hit will be recorded twice.

Code like this should do the trick:

<script type="text/javascript" src="/slimstat-js/slimstat.js"></script>

It uses Simon Willison's addLoadEvent function, so if that's already included in another JavaScript file on the same page, you should remove it from this one.

I'm looking for as much feedback as possible, from a wide variety of web servers and browsers, so please feel free to either comment here or on the SlimStat Google Group.

5 comments on this entry. Comments are now closed.

About this page

This is an entry in Stephen Wettone's weblog, published on 14 March 2006.

Summary of this entry

Please help me test the new experimental way of calling SlimStat via JavaScript.

Other weblog entries

The most recent entry is Reducing SlimStat's database size, published on 20 April 2006.

The previous entry, published on 24 Jan 2006, was SlimStat 0.9.

Use the calendar to find other entries in the weblog.

← Feb Mar Apr →

Search the weblog

Enter a word or phrase to search my weblog archives: