Rash thoughts about .NET, C#, F# and Dynamics NAV.


"Every solution will only lead to new problems."

Functions


After you have installed the Counterize II-Plugin, you can see a lot of diagrams on the Counterize II stats page (Dashboard/Counterize II).

Most likely you’d like to have a counter somewhere on your pages, showing XX hits or something like that. Here’s an overview of the functions which can be used in your WordPress sidebar.

New: <!-- counterize_stats -->
– Shows a complete stats page in one of your blog posts.

echo counterize_getuniqueurl()
– Returns amount of unique URl’s that have been shown

echo counterize_getamount()
– Returns total hits seen by Counterize.

echo counterize_gethitstoday()
– Returns total hits registered today.

echo counterize_getuniquebrowsers()
– Returns amount of unique browser-strings that have visited.

echo counterize_getuniquereferers()
– Returns amount of unique referers that’s registered.

echo counterize_getlatest7days()
– Returns total amount of hits from the last 7 days.

echo counterize_getuniqueamount()
– Returns total unique IP’s that’s been seen.

echo counterize_getfromcurrentip()
– Returns total hits from the IP that’s visiting.

echo counterize_getuniquehitstoday()
– Returns the number of different IP’s registered today.

echo counterize_gethitstodayfromcurrentip()
– Returns daily hits from the IP that’s visiting.

echo counterize_return_first_hit()
– Returns the date of the first registrated entry in the database.

counterize_most_visited_pages()
– Create graph of most visited pages.

counterize_most_visited_ips()
– Create graph of most active IPs.

counterize_most_used_browsers()
– Create graph of most seen useragents.

Verwandte Artikel

12 Comments »

  1. Danke für die Infos!

    Comment by Gedichte — Friday, 10. August 2007 um 12:43 Uhr

  2. have been looking for a plugin like this for a LONG time, thank you for your wonderful work! :)

    The only wish I have, would be to add a function that returns in the sidebar, something like

    Firefox 80%
    IE 10%
    Opera 5%
    Safari 5%

    or something to that effect. This would be helpful to me, and neat to show in my sidebar, to get a more general idea of what browser type my users are using, because generally I don’t care if people are using Firefox 2.0.0.9 or 2.0.0.8 er whatever, main browser type is what I care about from a design point of view.

    Comment by tcoburn — Wednesday, 28. November 2007 um 8:24 Uhr

  3. Which function should i use to show “xxx users online” in my pages?

    Comment by robi — Tuesday, 4. March 2008 um 12:49 Uhr

  4. Hi, how to show only “Most seen referers” ??

    Comment by sl4sh — Wednesday, 21. May 2008 um 20:52 Uhr

  5. Hi, please can U write full code what me show user online on site.
    thx

    Comment by Ka — Saturday, 3. January 2009 um 22:20 Uhr

  6. Hi, im a real php noob so bare with me!

    ok, here’s what i want. i want a simple visitor hit counter that “see’s” the ip’s of the visitors and therefore registers only 1 hit/per visitor. now i think that counterizeII can do this but how the hell do i make this counter visible in my sidebar??

    i see that i can use “echo counterize_getamount()”
    but i’m guessing i need to type in more php code to make this work, please anyone can guide med what to write in the sidebad.php….

    Thanx in advance!
    /Juan

    Comment by Juan — Saturday, 16. May 2009 um 13:02 Uhr

  7. thanks to Juan! have exactly the same question! and did not find anything in google about that.

    Comment by Alex — Saturday, 23. May 2009 um 0:26 Uhr

  8. @Juan and Alex

    the “echo counterize_getamount()” is the php function so you need to put it within php tags in your sidebar like this

    Enjoy!

    Comment by AbsoluteZero — Friday, 28. May 2010 um 4:47 Uhr

  9. Umm, ok, well, it didn’t show the php tags even though I put it in code tags…oh well, let’s try again…

    Replace the & with ? in the following:

    Comment by AbsoluteZero — Friday, 28. May 2010 um 4:50 Uhr

  10. Holy crap…

    put after it.

    Why don’t you use code tags Steffen?

    Comment by AbsoluteZero — Friday, 28. May 2010 um 4:54 Uhr

  11. Screw it…

    Check the tags out at this link
    http://www.php-mysql-tutorial.com/wikis/php-tutorial/opening-amp-closing-php-tags.aspx

    put that “echo counterize_getamount()” part in the middle of those tags shown (without the quotes)

    Comment by AbsoluteZero — Friday, 28. May 2010 um 4:56 Uhr

  12. @Steffen

    Does “counterize_getuniqueamount()” have an expiration? Or does that mean that it will only record an IP’s visit once for life? In other words, is there an expiration like 3600seconds or something when it will log a visit from that IP again? If not, is there a function I can use to get this functionality? I want a number similar to most common counters out there that increases the count from the same IP only if the visit is a certain time after. I’m sure you know exactly what I’m talking about (cookie lifetime/expiration time)

    Comment by AbsoluteZero — Friday, 28. May 2010 um 5:04 Uhr

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .