12, October 2008

Counter and Visitor Statisics - some improvements - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 1780 times)
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« on: Oct 25, 2006, 10: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 4 times.)
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6349
38918 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 26, 2006, 01: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 : Upload images for usage in TinyMCE
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8116
41653 credits
Members referred : 3



« Reply #2 on: Oct 26, 2006, 11:49:15 AM »

Maybe you are interested in this Visit through proxy Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6349
38918 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 26, 2006, 11:55:52 AM »

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


Last blog : Upload images for usage in TinyMCE
Bill Cosby is my Father
*
Posts: 4
28 credits
Members referred : 0


« Reply #4 on: Nov 03, 2006, 05: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, 06:19:08 PM by tonitone »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6349
38918 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Nov 04, 2006, 01:13:52 AM »

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


Last blog : Upload images for usage in TinyMCE
Just another rainy day
*
Posts: 1
6 credits
Members referred : 0


« Reply #6 on: Jun 08, 2007, 02: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: 6349
38918 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Jun 08, 2007, 02: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 : Upload images for usage in TinyMCE
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Oct 12, 2008, 04:51:54 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!


Forum Statistics
Total Posts: 36.906
Total Topics: 7.558
Total Members: 4.150
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: neli67

12 Guests, 3 Users online :

13 users online today:



Readers

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