Help - Search - Members - Calendar
Full Version: excluding a specific php file in the pageviews count
The Planet Forums > Control Panels > Urchin
DReffects
hi folks

i have a shiny new dynamic website - unfortunately the download-system displays each image via a php script making basically every image on the website count as a pageview. is there a way to exclude a certain file from being counted as a pageview?

thanks for your help icon_smile.gif
kamihacker
QUOTE
Originally posted by DReffects
hi folks

download-system displays each image via a php script making basically every image on the website count as a pageview.  

thanks for your help icon_smile.gif


what download system would be you talking about?

it's hard to tell without that info

regards
DReffects
QUOTE
Originally posted by kamihacker
what download system would be you talking about?

it's hard to tell without that info

regards


my own icon_wink.gif i use a php script that displays images like that:
[PHP]
header("Content-Type: image/jpeg");
while (!feof($fp))
{
echo (@fgets($fp, 4096));
flush();
}
fclose ($fp);
[/PHP]

to make long things short: i simply want to exclude a certain .php file to count as a pageview in urchin. icon_smile.gif
kamihacker
you got me, urchin illiterate here, try the technical notes or manual for urchin

regards
SHaRKTooTH
In the administration you have a filter manager under configuration. That should do what you need.
DReffects
QUOTE
Originally posted by SHaRKTooTH
In the administration you have a filter manager under configuration. That should do what you need.


yeah i found that but i dont quite understand this. icon_sad.gif would it be possible to explain it? thanks alot!
SHaRKTooTH
I would review the urchin documentation for full explanation, but I think what you want is to add a filter by clicking the add button in filter manager. The filter type would be "Exclude Pattern", the field would probably be "request_stem" or "request_filename", and the pattern would be the file and/or path possibly with wild cards.

http://help.urchin.com should have an entire section on filtering.
DReffects
QUOTE
Originally posted by SHaRKTooTH
I would review the urchin documentation for full explanation, but I think what you want is to add a filter by clicking the add button in filter manager. The filter type would be "Exclude Pattern", the field would probably be "request_stem" or "request_filename", and the pattern would be the file and/or path possibly with wild cards.  

http://help.urchin.com should have an entire section on filtering.


thanks for your help
i created a exclude filter with request_filename and for filter pattern:
QUOTE
ssi_getmedia.php|ssi_getthumbnail.php


is this a correct if i want to exlcude all request via ssi_getmedia.php and ssi_getthumbnail.php?

thanks icon_smile.gif
SHaRKTooTH
Yes, I believe that should work. It is only looking at the filename with that variable so if you had another file named the same in a different directory it should block it as well. Of course I would test it some because I am just going off my memory.
DReffects
QUOTE
Originally posted by SHaRKTooTH
Yes, I believe that should work. It is only looking at the filename with that variable so if you had another file named the same in a different directory it should block it as well. Of course I would test it some because I am just going off my memory.


seems to work - thanks for your help icon_smile.gif

the only problem that remains is, that thanks to the exclude filter this two files are totally ignored and therefore not being counted as traffic either... is there a way to excude this files only for the pageview measurement?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.