Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server side stats

Status
Not open for further replies.

evergreean

Technical User
Feb 15, 2006
68
US
I need to have a web page that shows Web page statistics only with the following information:
Total Hits
Who is hitting
Where they are coming from


Please advise if this is possible on my Windows 2000 Web Server?

Here is my start for the first part on getting hits:
Code:
<cfapplication name="surveyApp2" sessionmanagement="yes">
<cflock name="surveyAppVars2" timeout="3">
<cfparam name="application.uniqueVisitors2" default=0>
<cfparam name="application.count2" default=0>
</cflock>

<cflock name="surveyAppVars2" timeout="3">
       <cfif not isdefined("session.visited")>
             <cfset application.uniqueVisitors2 = application.uniqueVisitors2 + 1>
              <cfset session.visited = "yes">
       </cfif>
       <cfset application.count2 = application.count2 + 1>
</cflock>

Need more assistance with getting more details such as who is hitting the site and where they are coming from.
 
Hi evergreean,

You could parse the IIS log files, or read the Cold Fusion application log.

However, there are purpose-built apps, such as WebTrends, which are much better at this than hand-coding something in CF.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Eschewing obfuscation diurnally.
 
Thanks,

I have Webusage 8.0

Can that do everything I mentioned?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top