Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2007, 07:20 PM
Authorized User
 
Join Date: Jan 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Best way to track visits to a website

Hello everyone,
I really need some help with this one.
What I need to do is track how many times a user logs into the website.
This is to see who is using the site and what demographics are being targeted. I will be using a login page for the tracking. All the usernames will be stored in a d/b.
Some thoughts I have:
 writing to a text file or creating a separate d/b to collect the information.
using a counter field in the d/b and update it each time the user logs in.
I know that most websites have stats but my boss wants more detailed information than just an IP Address.
Is this project possible and what would be the best way to go?

Does any one have any suggestions? Please help point me in the right direction. This is a major undertaking for a newbie.
thanks
dink
 
Old February 11th, 2007, 06:33 PM
Authorized User
 
Join Date: Feb 2007
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you could use a counter in your db as you mentioned and make sure you index the table columns you will need demographic info from, such as age, region, etc.
 
Old February 11th, 2007, 06:50 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;What I need to do is track how many times a user logs into the website
I would place a one to many relationship between your 'users' table and a EG 'userHits' table. Its realy quiet simple. Every time a user logs in insert a record (userID, date, time, etc) into the 'userHits' table

;;;writing to a text file or creating a separate d/b to collect the information
Why would you want a seperate DB. You just need a new table as described above.

sols said 'you could use a counter in your db as you mentioned '
Yes you could however creating another table using a one to many relationship enables you to capture all sorts og information. Incrimenting a counter in the users table limits you for obvious reasons.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
Record date's of visits Corey Access VBA 1 December 1st, 2005 03:50 PM
track all changes Machiaveli280278 SQL Server 2000 2 September 9th, 2004 04:16 PM
How to Keep track of all incoming Documents reddynet Biztalk 0 July 17th, 2003 04:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.