14, February 2012

Counter and Visitor Statisics - some improvements - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Miscellaneous scripts or snippets (Moderator: Olaf)
Topic: Counter and Visitor Statisics - some improvements
« previous next »
Pages: [1] Print

Author Topic: Counter and Visitor Statisics - some improvements  (Read 2797 times)
Total Zero
*
Posts: 5
34 credits
Members referred : 0


« on: Oct 25, 2006, 09:19:45 pm »

hi olaf,

i added some pieces of code-lines in to get in the Visits by Referer another column for the Querystring, with highlighted search parameters

i made these changes, because i would like to see, what people search for, when they come on my site.

example for a row where are the referer-informations from google.at
?q=my+search+string&hl=de&lr=&start=40&sa=N

you can see the changes, if you search for the word "tonitone" in the script.

bye
toni




* count_visitors_class.php.txt (15.24 KB - downloaded 5 times.)
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 26, 2006, 12:06:57 am »

Hi Toni,

I planned this feature for future versions but have time to short...

I think the query string can be parsed like in awstats to show only the keywords and/or search string (but I will check you example later if I have the time)


Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #2 on: Oct 26, 2006, 10:49:15 am »

Maybe you are interested in this Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 26, 2006, 10:55:52 am »

Maybe you are interested in this Smiley
thats a good one, thanks for pointing me on this...


Last blog : A new Wordpress theme for our blog
Total Zero
*
Posts: 5
34 credits
Members referred : 0


« Reply #4 on: Nov 03, 2006, 04:49:08 pm »

hi olaf,

its me again  Smiley

now i implement a (i think clean Wink) keyword-stats method and you can define what query-parameters you choose in one array
Code:
var $query_searches = array(
'p',
'q',
'query',
'keywords'
);
the code builds regular-expression search-and-replace arrays to colorize the whole string, or display only keywords.

method-call is:
Code:
$...->stats_keywords();

screenshots:






there is one todo, to limit the keywords_string- and the keywords_singleword-toplist in the "stats_keywords()"-method. but i dont need this at the moment, because i want to see everything, but there is a TODO-comment at this place.

bye
i hope it helps someone

toni

* count_visitors_class.php.txt (19.08 KB - downloaded 3 times.)
« Last Edit: Nov 03, 2006, 05:19:08 pm by tonitone »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Nov 04, 2006, 12:13:52 am »

Toni you did a nice job, I will check this soon!


Last blog : A new Wordpress theme for our blog
Just another rainy day
*
Posts: 1
6 credits
Members referred : 0


« Reply #6 on: Jun 08, 2007, 01:33:19 pm »

Hi Olaf,

Don't know if you cane use this but i added a function to exclude ip-adresses from an array in the class.    

function exclude_ip($arr) {
      foreach ($arr as $ip) {
         if ($ip == $_SERVER['REMOTE_ADDR']) { return false; } else { return true; }
      }
   }

   function insert_new_visit($array = array( 0 => '' )) {
      if ($this->exclude_ip($array)) {
                ...............

Bye, Seraphim

Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Jun 08, 2007, 01:56:50 pm »

hi, nice suggestion Wink

I used some similar code outside the class to filter some IP addresses. (on the other site I'm asking me if this project is used by a lot of people since Google Analytics has much more information Sad)


Last blog : A new Wordpress theme for our blog
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4559
Tags : google awstats Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Miscellaneous scripts or snippets (Moderator: Olaf)
Topic: Counter and Visitor Statisics - some improvements
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 14, 2012, 11:27:55 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.