Primal Blue Software, Inc. home | contact us | client login | site map
 



.Net Stats Installation

  1. Extract the file contents to a directory on your computer
  2. Create an Image Directory in the Web Application and copy the .Net Web Stats image files to your application.
  3. Change the permissions of your web application Image Directory to "Read / Write / Delete".
  4. Copy the .dll files from the installation folder to your web applications "bin" directory.
  5. Copy your License that you received via email to your web applications "bin" directory.
  6. Add the following Settings to your Web.Config file.

For SQL 2000 Setup

<appSettings>
     <add key="PrimalBlue.Stats.Database" value="Sql" />
     <add key="PrimalBlue.Stats.ReturnTimeOut" value="365" />
     <add key="PrimalBlue.Stats.OnlineTimeOut" value="5" />
     <add key= "PrimalBlue.Stats.ImagePath" value="/netstatsImages/"/>
     <add key="PrimalBlue.Stats.ConnectionString" value="DataSource=DataSource;uid=ID;pwd=PASS;Initial Catalog=DataBase;Integrated Security=SSPI" />
     <add key="PrimalBlue.Stats.TablePrefix" value="stats_" />
</appSettings>

For MS Access Setup


<appSettings>
     <add key="PrimalBlue.Stats.Database" value="Access" />
     <add key="PrimalBlue.Stats.ReturnTimeOut" value="365" />
     <add key="PrimalBlue.Stats.OnlineTimeOut" value="5" />
     <add key="PrimalBlue.Stats.ImagePath" value= "/netstatsImages/" />
     <add key="PrimalBlue.Stats.ConnectionString" value= "Provider= Microsoft.Jet.OleDb.4.0;Data Source= e:\\pathTo\\database\\netwebstats.mdb" />
     <add key="PrimalBlue.Stats.TablePrefix" value="" />
</appSettings>

  1.  Setup your database
    1. If you are using a SQL database run the tables.sql file in the SQL Query Analyzer to setup the database.
    2. If you are using a MS Access Database copy the netwebstats.mdb database to a location within your web application. The database folder must have Read/Write permissions.

To Record Traffic

  1. Reference .Net Web Stats to a footer file or each page you wish to track. Example Below:

<%@ Register TagPrefix="pbs" Namespace="PrimalBlue.Web.Stats" Assembly="PrimalBlue.Web.Stats" %>
....
<pbs:NetStats id="NetStats1" runat="server" Count="True" />


To View Traffic
<%@ Register TagPrefix="pbs" Namespace="PrimalBlue.Web.Stats" Assembly="PrimalBlue.Web.Stats" %>
....
<pbs:NetStats id="NetStats1" runat="server" Count="False" />

A CSS file has also been provided with the installation. If you would like to customize the look of the Traffic Display modify the CSS file to your linking and reference it on the page you are viewing traffic.

Web.Config Settings
PrimalBlue.Stats.Database: Specifies what database type to use. "Sql" for SQL Server 2000 or "Access" for MS Access
PrimalBlue.Stats.ReturnTimeOut: Number of days to track return users
PrimalBlue.Stats.OnlineTimeOut: Minutes before an online user times out
PrimalBlue.Stats.ImagePath: Path to .Net Web Stats Image Folder
PrimalBlue.Stats.ConnectionString: Database Connection String
PrimalBlue.Stats.TablePrefix: If you add a table prefix enter it here. By default leave this empty