BrowserHawk IQ now available! Click here for the full scoop!
Search:
How can I track stats for multiple web sites independently of each other?
Created: 1/8/2003    Updated: 1/8/2003
Q   I run multiple web sites on the same server and use BrowserHawk Reports to track statistics for each client. However all the stats get inserted into the same BrowserHawk Reports database. How can I report stats for each client's site independently?

A   The LogData methods enables you to specify up to 5 custom fields of data that can be inserted along with the statistics.

To log stats separately, pass a unique identifier for each client into one of these 5 fields. Then when you query the database for results, you can filter your query to just one of your client's unique identifier.

For example, for Client A you can do this from their ASP page which you log stats from:

  bhObj.LogData 0, "CLIENT_A"
For Client B you do this:
  bhObj.LogData 0, "CLIENT_B"
This will result in CLIENT_A and CLIENT_B respectively being inserted into the userdata field. To get stats for client A you can then only retrieve rows that have CLIENT_A in the userdata field. For more information on the custom data fields see the LogData method in the BrowserHawk documentation.

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP