mack

msg:4530902 | 3:49 am on Dec 25, 2012 (gmt 0) |
It wont show in Awstats because the header info hasn't been sent, before your code to place the header (redirect) If I'm wrong please correct me... What I would do is send all qr traffic to example.com/qr.php but pass a numerical value with each. For example a poster advert would go to example.com/qr.php?source=1 magazine example.com/qr.php?source=2 then within that php file get the post data... $source = $_GET['source'] save the source to a database then do the redirect in terms of data what I would do is have a database with a table called for example "inbound" id : sourcenumber: total select * from inbound where sourcenumber = '$source' ; get the current value for total and add 1 update inbound set total = 'newtotal' where sourcenumber = '$source' Hope this gives you some ideas. Mack.
|
phranque

msg:4530920 | 6:24 am on Dec 25, 2012 (gmt 0) |
welcome to WebmasterWorld, oab2! you might want to look through the AWStats Documentation - Configuration directives and parameters: http://awstats.sourceforge.net/docs/awstats_config.html [awstats.sourceforge.net] specifically you might be interested in this section: http://awstats.sourceforge.net/docs/awstats_config.html#ValidHTTPCodes # By default, AWStats considers that records found in log file are successful # hits if HTTP code returned by server is a valid HTTP code (200 and 304). # Any other code are reported in HTTP error chart. # However in some specific environment, with web server HTTP redirection, # you can choose to also accept other codes. |
|
|
Alex_TJ

msg:4531109 | 11:29 am on Dec 26, 2012 (gmt 0) |
I'd just use the simplest solution and add hashtags onto the urls you're encoding in the qr codes, eg example.com#brochure and you can see and easily interpret the sources.
|
phranque

msg:4531237 | 11:46 pm on Dec 26, 2012 (gmt 0) |
the "hashtags" are actually document fragment identifiers. as such the fragment identifier is not sent with the requested url to the server. a fragment identifier appended to the current url would send no request to the server and would be handled entirely by the browser.
|
|