A powerful real-time web analytics plugin for WordPress.
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 triggeredc 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 releasesn 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);"<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.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!
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.
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.
This plugin is incompatible with WP Supercache, WP Cache, Hyper Cache, or any page-based caching plugin.
"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
Go to Settings > SlimStat > Filters and set "Ignore Spammers" to YES.
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
4 of 4 support threads in the last three weeks have been resolved.
Got something to say? Need help?