guys..patabang unta ko..pwde magpost mo ug code for website tracking..knsa mga ni.view,pila gaview,nsa na browser gamit..etc...preferably javascript..
guys..patabang unta ko..pwde magpost mo ug code for website tracking..knsa mga ni.view,pila gaview,nsa na browser gamit..etc...preferably javascript..
Unsay webserver nga gamit?
bitw tabang mu...
onsay webserver bro??noob pa man ko gud..
webserver .. like apache, IIS, etc ..
Reason why i'm asking is each webserver stores web stats in different ways ...
if you're using apache, i have a script which reads /var/log/httpd/access_log to get the statistics on who accesses which pages, how many times, from which IP, at what dates, and using what browsers ... then I store these stats in the database at the end of the day.
On IIS its also different ...
Last edited by kolz; 07-02-2009 at 06:09 PM.
IIS bro..help po!
Y don't you try AWStats ... its a free log analyzer for IIS/apache etc. and presents the data in a graphical format or reports to an excell, txt file ... etc.
AWStats - Free log file analyzer for advanced statistics (GNU GPL).
Javascript ...hmm. Sayon ra unta ni buhaton if gamitan ug server side scripts like PHP or Perl, ASP or ASP.NET ba kaha. But client side script like Javascript, I don't think so, unless if you make your log files accessable to the client - exposing it directly and serving it directly from your web browser. This is a huge security risk, which I advise not to do.
Ang problema man gud is the log files reside in the Server, for example IIS usually is in c:\InetPub\logs\LogFiles\W3SVC1\u_ex<date>.log, which needs special permissions to view the file. The file has the following format:
Each line can be easily parsed via PHP or Perl, and report this on a page. However, kung Javascript gyud imo gamiton, you have to download/serve this log file to the client para ma gamit sa imo Javascript to display. Pwede sad ni i serve sa web service and log or use AJAX, pero thats a whole new complicated solution to a simple problem.Code:#Software: Microsoft Internet Information Services 7.0 #Version: 1.0 #Date: 2009-06-21 07:47:27 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken 2009-06-21 07:47:27 ::1 GET /FusionCharts_Enterprise - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.0;+Trident/4.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+InfoPath.2;+.NET+CLR+1.1.4322;+.NET+CLR+3.5.30729;+OfficeLiveConnector.1.3;+OfficeLivePatch.0.0;+.NET+CLR+3.0.30729;+yie8) 301 0 0 4070
counter lng na brad.. daghan free webcounters diha can give u the statistics you need for noob..
ayaw na ug lisud-lisora pa..
Ojt man gud mi ron dn we are asked to start researching about website tracking for the website of our client.. not really xur i understand the whole concepts about what scripts to use but i think i got the gist..
anyways wala paman jud mi na.orient to asa jud mi magsugod if well start from scratch ba jud.. probably we're more interested on how these trackers work..
i hope you all guys could elaborate more on what are the advantages of scripts or recommend us some, or if possible could give us a very simple sample code to track especially dealing with cookies..
Similar Threads |
|