Plugin Directory

WP SlimStat

A powerful real-time web analytics plugin for WordPress.

Can I track Google Plus One and other events?

Yes, this plugin includes a Javascript function that can be used to track any event: click, mouseover, focus, keypress, etc. Here's the syntax:

ss_te(e, c, f, n)

Where:

  • e is the event that was triggered
  • c is a numeric value between 1 and 254 (zero is reserved for outbound clicks)
  • f - this parameter is deprecated and will be removed in the next releases
  • n is a custom text (up to 512 chars long) that you can use to add a note to the event tracked. If the ID attribute is defined, and no note has been specified, the ID value will be used. If the function is attached to a key-related event, the key pressed will be recorded as a note.

Examples:

  • onclick="if(typeof ss_te == 'function') ss_te(event, 5, false, 'clicked on first link');"
  • onkeypress="if(typeof ss_te == 'function') ss_te(event, 20, false);"
  • To make your life easier, a Google Plus One callback function is included as well: <g:plusone callback="slimstat_plusone"></g:plusone>. Positive entries will have code = 3, negative ones (undo +1) code = 4. Remember: Google's javascript must be loaded after slimstat.js, so make sure to put things in the right place in your souce code.

How do I create my own custom reports?

You need to write a plugin that retrieves the information from WP SlimStat tables and displays it using the format described here below. A demo plugin is included within the package: take a look at its source code (which I tried to keep as simple as possible) and cut your imagination loose!

How do I display stats on my website?

WP SlimStat has two ways of displaying its reports on your website. Including filters!

Direct access You will need to edit your template and add something like this where you want your metrics to appear:

// Load WP SlimStat VIEW, the library with all the metrics
require_once(WP_PLUGIN_DIR.'/wp-slimstat/view/wp-slimstat-view.php');

// Define a filter: I want to show only hits by people who where using Firefox, any version
$filters = array('browser' => 'Firefox', 'browser-op' => 'contains');

// Instantiate a new copy of that class
$wp_slimstat_view = new wp_slimstat_view($filters);

// Use the appropriate method to display your stats
echo $wp_slimstat_view->count_records('1=1', '*', false);

Using shortcodes Please refer to this page for more information. Here you can find a list of all available functions and filters.

Can I disable outbound link tracking on a given link?

Yes. This is useful if you notice that, after clicking on a Lightbox-powered thumbnail, the image doesn't open inside the popup window as expected. Let's say you have a link associated to Lightbox (or one of its clones):

<a href="/wp-slimstat">Open Image in LightBox</a>

Change it to:

<a href="/wp-slimstat" class="noslimstat">Open Image in LightBox</a>

Clicks will still be tracked, but WP SlimStat will not interfere with Lightbox anymore.

After installing WP Supercache (or other caching plugin), WP SlimStat shows very few visits, why is that?

This plugin is incompatible with WP Supercache, WP Cache, Hyper Cache, or any page-based caching plugin.

Why does WP SlimStat show more page views than actual pages clicked by a user?

"Phantom" page views can occur when a user's browser does automatic feed retrieval, link pre-fetching, or a page refresh. WP SlimStat tracks these because they are valid requests from that user's browser and are indistinguishable from user link clicks. You can ignore these visits setting the corresponding option in Settings > SlimStat > Filters

How do I stop WP SlimStat from tracking spammers?

Go to Settings > SlimStat > Filters and set "Ignore Spammers" to YES.

How do I stop WP SlimStat from recording new visits on my site?

Go to Settings > SlimStat > General and set "Activate tracking" to NO.

Requires: 3.1 or higher
Compatible up to: 3.3.2
Last Updated: 2012-3-28
Downloads: 178,692

Average Rating

4 stars
(180 ratings)

Support

4 of 4 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Works!

6 people say it works.
1 person says it's broken.

100,3,3 100,1,1 100,2,2 100,3,3 100,2,2 100,2,2 100,1,1
100,1,1 75,4,3 100,2,2 100,2,2 0,1,0
100,5,5 100,2,2 100,11,11 67,3,2 100,6,6 100,2,2 50,4,2
100,2,2
100,5,5
100,1,1 100,1,1 100,1,1
100,1,1 100,4,4 92,12,11
100,6,6 50,2,1 100,1,1
100,3,3 86,7,6 83,6,5 100,1,1
91,11,10 100,5,5 100,1,1 100,1,1
100,10,10 50,2,1
100,7,7 100,5,5 93,14,13 100,7,7 60,5,3 71,7,5
71,7,5
100,8,8 100,8,8 100,11,11 95,21,20
86,7,6