Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Why does Awstats not count pages with Meta Tag redirects?

Reply to Post Add a New Topic
UserPost

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: SkipFilesOnlyFiles 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.

Reply to Post

Reply to Topic:
Why does Awstats not count pages with Meta Tag redirects?

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
9 + 8
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 498
Posts: 2381

Membership:

There are 2068 Members
There have been 245 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
albert_newton – 30
deepakgupta – 28
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: Diggy, mopl91, henrique, ScottWigle, mgshirinda, andersondj

Administrators: Jean-Luc (1043 Posts)

Moderators: Jean-Luc (1043 Posts)