This page demonstrates some of the statistics you can include in your posts and pages. The required code to obtain each table is given.
Counterize adds one shortcode available in your editor. The most basic shortcode is: [[counterize]]
Hits statistics
[counterize type=”hits”]
Code to display this: [[counterize type=”hits”]]
[counterize type=”browsers” collapsible=”yes”]
Code to display this: [[counterize type=”browsers” collapsible=”yes”]]
[counterize type=”browsers”]
Code to display this: [[counterize type=”browsers”]]
[counterize type=”browsers” version=”no”]
Code to display this: [[counterize type=”browsers” version=”no”]]
[counterize type=”os” collapsible=”yes”]
Code to display this: [[counterize type=”os” collapsible=”yes”]]
[counterize type=”os”]
Code to display this: [[counterize type=”os”]]
[counterize type=”os” version=”no”]
Code to display this:[ [counterize type=”os” version=”no”]]
[counterize type=”ip” period=””]
Code to display this: [[counterize type=”ip” period=””]]
[counterize type=”ip”]
Code to display this: [[counterize type=”ip”]]
[counterize type=”countries” period=””]
Code to display this: [[counterize type=”countries” period=””]]
[counterize type=”countries”]
Code to display this: [[counterize type=”countries”]]
[counterize type=”posts” period=””]
Code to display this: [[counterize type=”posts” period=””]]
[counterize type=”posts”]
Code to display this: [[counterize type=”posts”]]
[counterize type=”urls” period=””]
Code to display this: [[counterize type=”urls” period=””]]
[counterize type=”urls”]
Code to display this: [[counterize type=”urls”]]
[counterize type=”referers” period=””]
Code to display this: [[counterize type=”referers” period=””]]
[counterize type=”referers”]
Code to display this: [[counterize type=”referers”]]
[counterize type=”keywords” period=””]
Code to display this: [[counterize type=”keywords” period=””]]
[counterize type=”keywords”]
Code to display this: [[counterize type=”keywords”]]
[counterize type=”outlinks” period=””]
Code to display this: [[counterize type=”outlinks” period=””]]
[counterize type=”outlinks”]
Code to display this: [[counterize type=”outlinks”]]
[counterize]
Code to display this copyright notice: [[counterize]]
More options are available for the shortcode, just click on the Counterize button in the Visual editor to check it out.
On my site, I installed the plugin..but how do i view these graphs and info… I can’t find it. Please help. Thanks.
When you add a post or a page, click in the HTML view button, then add one of the codes described in the demo.
For example, write the following to display the table on top of the post:
I tried both with a page and with a post but the editor inserts a blank between “<" and "!" so what I see in the published page/post is just the code like
could you help me ?
Did you try in HTML mode? You can’t write this in the normal mode of the post editor.
Yes, that what I’ve done, but if I swith to “Visual” mode and back to HTML, then I see:
here is a problem of html interpretation of the comment system: What I see is ( I put a _ between chars)
&_l_t_; !−− counterize_stats_pages_10 −−&_g_t_;_
I just tested. Switching between Visual and HTML mode does not change ‘<' and '>‘ to ‘& l t ;’ and ‘& g t ;’… What is your WordPress version?
Dear Andrea,
Your problem made me think to use another magic string to display statistics in posts. A string that does not contain any XML reserved characters. Maybe ###COUNTERIZE_function_name### for example. It will be available in the next version of Counterize 😉
sorry…what I said is that now the code seems to be ok, but I am not able to see anche stat because the plugin is just installed
PS why any time I leave these comments on your site I get SQL errors ?
You see SQL errors because I am currently debugging my plugins 😉
. . . but still not able to show stats in italian; I followed your instructions and, using poedit, I have produced the counterize-it files (.po and .mo) but the plugin is still in english nevertheless wordpress is in italian
Any advice ?
Try to choose “Italy” as your country in Poedit, and rename the files to counterize-it_IT.mo instead of counterize-it.mo. It was a mistake from me to ask to not choose the country.
By the way I am releasing version 3.0.13 later which change quite a few sentences. Be ready to update your translation 😉
Hi and thanks for the plugin.
I inserted into my header but all I get is the number 0 (zero). I also tried it in my sidebar as you recommend on this page – http://wpta.co.za/wordpress/wp-admin/plugin-install.php?tab=plugin-information&plugin=counterize&TB_iframe=true&width=600&height=550
Any idea why it won’t count?
Thanks,
Rob
What code would I use to just show the unique hits on the site and not all of the stats for hits?
Thanks
great plugin
Hi ty me,
Just use some of the available functions. For example,
The following line works for me in wordpress 3.2
#- counterize_stats_hits -#
I have into my footer ?php echo counterize_getuniqueamount(); ?>, but I want to get the total hits.
Could you please help me?
Thx in advance,
N.
Ok, I got my answer reading the readme.html file:
echo counterize_getamount()
unable to insert code… even in HTML mode
What do you exactly wrote in your post?
I fail to publish statistics on page .. I tried with # – counterize_stats_hits – # or
or echo counterize_getuniqueURL();
WordPress version is: 3.0.1
some help..
Hi there!
Try without any space between the “#” and the “-” and see if it helps 🙂
I love the demo but I can’t get it to work:
Here’s what’s on the page:
Statistics initialized on Jan 7, 2012
#- counterize_stats_hits -#
#- counterize_stats_countries_5 -#
#- counterize_stats_referers_5 -#
#- counterize_stats_browsers_5 -#
#- counterize_stats_os_5 -#
#- counterize_stats_ip_5 -#
Here’s the result:
http://uumarblehead.org/?page_id=3792
And what’s with this setting? Capability needed to display the Counterize dashboard
Hi Hugh,
You have to be sure that the correct dash is used. I think that WordPress replace automatically the minus dash (-) by a larger dash, which makes the statistics impossible to add excepted if you type the code in HTML view.
The next version of Counterize, which I am working on, will use standard WordPress shortcodes and will not have this problem.
If you can wait for about one week untill I release the next version, your problem will be fixed 🙂
Best,
Gabriel
I forgot to talk about the capability setting. If your blog has several users, for example authors, editors, administrators, etc, you may not want the authors to be able to see or modify the Counterize settings (for example). This settings let you set what capability is needed to be able to see the Counterize pages. Although I agree that I should do a less complicated setting.
Counterize 3.1.0 is on its way, I only have to rewrite a function and I will send it to the SVN repository.
None of the browser of country modifiers work for me? Instead it just shows:
Statistics recorded with Counterize – Version 3.1.3
Hi Rick,
What are you doing or writing exactly?
Thank you for using Counterize 🙂
yesss, I am gonna try it tonight!!
Really cool plugin. I love the tables, particularly the nested tables. Wish there was a plugin just for that.
I don’t understand how you can have more visitors per 30 minutes than you have per hour and how you can have more visitors in 30 minutes than you have in total?
What the heck is that about? Don’t get a reply from the author and can’t yet seem to find this info on Google. Anyone have any insights for me please?
hi….will i be able to add this multiple times in the same post? [ like a voteing system? Is there a different code or setting for this?
great plugin..
Best Regards
[counterize type=”hits”] (as in the demo on this page) just gives me a link to gabsoftware.com/products/scripts/counterize.
I’m using WordPress 3.8
Can we use Counterize for Static HTML pages?
I’m just trying to use your one code counterize_getuniqueamount() on the page so that I can show “Unique Visitors = #”
While I have seen the statement suggesting I can use these codes anywhere in WordPress, I have not seen an example of using these other codes.
Would you mind showing one? I’m very green in front-end word.