Examples of Frequently Used Shortcodes in WP Slimstat
Applies to SlimStat 6.0.0 · checked
Use a Shortcode block in WordPress and paste an example below. These examples display reports from data already recorded; they do not add tracking to a page.
Pageviews in the current month
[slimstat f="count" w="id"]
Pageviews across all dates in the live table
[slimstat f="count-all" w="id"]
“All” removes the date restriction; it does not recover purged data.
Five popular posts this month
[slimstat f="top" w="post_link"]content_type equals post&&&limit_results equals 5[/slimstat]
Pageviews for a selected path
[slimstat f="count" w="id"]resource contains /welcome/[/slimstat]
Recent recorded page paths
[slimstat f="recent" w="resource"]limit_results equals 5[/slimstat]
Group popular pages without query strings
[slimstat f="top" w="post_link_no_qs,count" s=" · "]limit_results equals 5[/slimstat]
This groups URL variants before limiting results and displays a count beside each page.
Campaign names, sources and counts
[slimstat f="top" w="utm_campaign,utm_source,count" s=" · "]limit_results equals 10[/slimstat]
Complete acquisition schema setup first. Tags retain their case; never place personal information in them.
Visitors active within the last 30 minutes
[slimstat f="live" w="users"][/slimstat]
Use pages or countries for the other live counters. These render when WordPress generates the page; cached HTML can display older counts.
Preview a report before copying
Open the Shortcode Playground to choose a report, inspect real data or a clearly labeled Pro sample, and copy or test its shortcode.
Before publishing a report
Preview the page while logged out. Choose aggregate statistics for public pages and avoid publishing visitor IPs, usernames or sensitive URL parameters. The v6 engine hides personal fields, Access Log and user reports from people without analytics access. Keep restricted pages out of shared HTML caches so an authorized response cannot be served to other visitors. Page caching can keep displayed counts stale until the cache refreshes.
See the shortcode reference for functions and combining filters for more targeted reports.