Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 10th, 2007, 07:20 PM
Authorized User
 
Join Date: Jan 2007
Location: Hawaiian Gardens, CA, USA.
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
Reply With Quote
  #2 (permalink)  
Old February 11th, 2007, 06:33 PM
Authorized User
 
Join Date: Feb 2007
Location: , , .
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.
Reply With Quote
  #3 (permalink)  
Old February 11th, 2007, 06:50 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.