Let’s get started
Take your business to next level
Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.
With WP Statistics, you can display different statistics using shortcodes in posts, pages, and HTML widgets.
To use WP Statistics shortcodes, follow the format below:
[wpstatistics stat={stat} time={time} provider={provider} format={format} id={id}]
today
: Statistics for todayyesterday
: Statistics for yesterdayday
: Daily statisticsweek
: Weekly statisticsmonth
: Monthly statisticsyear
: Yearly statisticstotal
: Cumulative statisticsx
(e.g., -10
): Statistics for the past x
days (e.g., -10
for the past 10 days) This parameter uses the strtotime()
PHP function. For more details, visit the PHP manual.
ask
bing
clearch
duckduckgo
google
yahoo
yandex
i18n
: Uses the format of the current country as set in WordPressEnglish
: Uses the 1,000.00 style formatnone
: Returns numbers without any formatting (default)To display the number of visitors today:
[wpstatistics stat=visitors time=today]
To display the total number of visits:
[wpstatistics stat=visits time=total]
Using these parameters, you can customize the shortcodes to fit your specific needs and display a wide range of statistics on your WordPress site.
Stat | Description |
---|---|
usersonline | The number of users online right now. |
visits | The number of hits to the site. |
visitors | The number of visitors to the site. |
pagevisits | The number of times the current page has been visited. |
pagevisitors | The number of unique visitors who have visited the current page. |
searches | The number of search engine referrals. |
postcount | The total number of posts on the site. |
pagecount | The total number of pages on the site. |
commentcount | The total number of comments on the site. |
spamcount | The total number of spam comments on the site. |
usercount | The total number of users on the site. |
postaverage | The average posts per user on the site. |
commentaverage | The average comments per user on the site. |
useraverage | The average number of users on the site. |
lpd | The last post date for the site. |
Below are examples of how to use the shortcodes:
[wpstatistics stat=usersonline]
[wpstatistics stat=visitors time=today]
[wpstatistics stat=visits time=today]
[wpstatistics stat=visits time=yesterday]
[wpstatistics stat=visits time=total]
[wpstatistics stat=visitors time=total]
Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.