| User | Post |
|
12:03 pm May 26, 2009
| tmcintosh
| | |
| Member | posts 4 | |
|
|
Hi there, this may be a simple problem for some, but I just don't know Awstats well enough.
Here's my scenario, I have set up landing pages for external sites to link to and then redirect to the home page automatically. These landing pages use a Meta Refresh tag to jump to the home page. The redirecting landing pages work just fine, but they don't show any stats in Awstats, which is the whole point. If I could get this to work, it would be great, otherwise I'll have to capture the visit info to a database, which seems like overkill to me.
Thanks for any advice you may have!
|
|
|
12:28 pm May 26, 2009
| Jean-Luc
| | |
| Admin
| posts 1044 | |
|
|
Hi,
A page containing a meta refresh tag appears as any other page in the AWStats reports , but a URL sending a 301 or a 302 redirect code will not appear in a standard AWStats report.
I guess that, in fact, you are using such a redirection. You can add an extra section to AWStats to monitor the 301/302 traffic to the landing pages. Have a look at this example of an extra section collecting hits sending a 500 code. Just replace “500″ by “301″ or “302″ in your config file.
|
|
|
12:36 pm May 26, 2009
| tmcintosh
| | |
| Member | posts 4 | |
|
|
Thanks for the quick reply. My landing pages are using a meta tag like so:
<meta http-equiv="refresh" content="0;URL=sitehomepage.aspx" />
and these pages don't show up in the Awstats stats at all, not in the Entry page, not in the Viewed page, they don't seem to be logged at all. If they should be showing up, perhaps there are config settings that need to be changed?
|
|
|
1:07 pm May 26, 2009
| Jean-Luc
| | |
| Admin
| posts 1044 | |
|
|
With a default AWStats config file, your landing pages would be showing up. There are various ways to exclude pages. What are the values of the following parameters in your config file: SkipFiles , OnlyFiles and NotPageList .
Please also search for one of these landing pages in your webserver log file and paste the line here.
|
|
|
2:09 pm May 26, 2009
| tmcintosh
| | |
| Member | posts 4 | |
|
|
Here's the listing from the log file:
2009-05-26 00:37:33 W3SVC5096 HOSTNAME [IPADDRESS] GET /inbound/mastermind.htm – 80 – 70.49.222.147 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+InfoPath.1) – http://ca.mc1124.mail.yahoo.com/mc/welcome?.gx=0 &.rand=10hhap05gas0j websiteURL 200 0 0 641 328 281
Text in red has been replaced for privacy reasons.
Here are the values of the conf file:
SkipFiles=””
OnlyFiles=””
NotPageList=”css js class gif jpg jpeg png bmp ico swf”
also, I found this entry…
ValidHTTPCodes=”200 304″
which I just changed to
ValidHTTPCodes=”200 304 302 305″
This last entry may be the trick, I'll let you know if it made any difference.
Cheers.
|
|
|
2:29 pm May 26, 2009
| Jean-Luc
| | |
| Admin
| posts 1044 | |
|
|
The line from your log file shows that a hit on /inbound/mastermind.htm returns a 200 code. This confirms that there is no need to add redirect codes in ValidHTTPCodes .
It is clear to me that the above line from your log file qualifies to appear in the “full list” of the “URL” section of your AWStats report. I do not know if it gets enough hits to come in the “Pages-URL (Top 10)” section though.
|
|
|
2:36 pm May 26, 2009
| tmcintosh
| | |
| Member | posts 4 | |
|
|
Very strange, the landing pages are definitely not showing up on the Full List of the Pages-URL summary. The last file in the list only have 1 viewing so I think it is showing everything. I'll keep looking through the conf file to see if there's anything else I can do. Let me know if you have any advice as to where else I should poke around.
Cheers.
|
|