473,396 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how many page hits specified date range

Hi

I have a requirement where I need to make a report for each auto dealer how many hits they got on specified date range, so for each car detail page I increment the counter and total it while doing that I store the last hit date, this gives the total hits for the dealer BUT does not facilitate date range

How do I give the user a date range so that he can check how many hits the dealer got lets say for last week OR last couple of days?

Thanks much!

Gary
Jul 19 '05 #1
7 1848
Are you not storing this in a database? That would be the ideal solution --
just implement a simple function that logs hits to a page, along with a time
stamp. It is also very flexible to report on whatever other parameters you
want to report on.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a requirement where I need to make a report for each auto dealer how
many hits they got on specified date range, so for each car detail page I
increment the counter and total it while doing that I store the last hit
date, this gives the total hits for the dealer BUT does not facilitate date
range

How do I give the user a date range so that he can check how many hits the
dealer got lets say for last week OR last couple of days?

Thanks much!

Gary
Jul 19 '05 #2
this? I store hits counter, firsthit and lasthit in the database having this
I could only show all the hits since creation to last hit but NOT for last
one week or couple of days....
"Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Are you not storing this in a database? That would be the ideal solution -- just implement a simple function that logs hits to a page, along with a time stamp. It is also very flexible to report on whatever other parameters you
want to report on.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a requirement where I need to make a report for each auto dealer how many hits they got on specified date range, so for each car detail page I
increment the counter and total it while doing that I store the last hit
date, this gives the total hits for the dealer BUT does not facilitate date range

How do I give the user a date range so that he can check how many hits the
dealer got lets say for last week OR last couple of days?

Thanks much!

Gary

Jul 19 '05 #3
Then change what you're storing. The database can't magically extrapolate
data you've already compressed.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

"Garyrek" <Ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
this? I store hits counter, firsthit and lasthit in the database having
this
I could only show all the hits since creation to last hit but NOT for last
one week or couple of days....

Jul 19 '05 #4
Store individual hits, with timestamp, that way you are more data that you
can report on -- weekly, hourly, or even minutely :)

Link Hit Time
---------- -----
1 1 4/1/2004 1:12:23 AM
1 2 4/1/2004 1:12:24 AM
2 3 4/1/2004 1:12:25 AM

Collecting more data can only help you.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
this? I store hits counter, firsthit and lasthit in the database having this I could only show all the hits since creation to last hit but NOT for last
one week or couple of days....
"Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Are you not storing this in a database? That would be the ideal

solution --
just implement a simple function that logs hits to a page, along with a

time
stamp. It is also very flexible to report on whatever other parameters you want to report on.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a requirement where I need to make a report for each auto dealer

how
many hits they got on specified date range, so for each car detail page I increment the counter and total it while doing that I store the last hit
date, this gives the total hits for the dealer BUT does not facilitate

date
range

How do I give the user a date range so that he can check how many hits the dealer got lets say for last week OR last couple of days?

Thanks much!

Gary


Jul 19 '05 #5
Hi Manohar / Aaron
I should have mentioned this earlier, this way the table gets too big
henceforth database, is there any other way like storing in a file or using
pagecounter component?

thanks

Girish

"Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
Store individual hits, with timestamp, that way you are more data that you
can report on -- weekly, hourly, or even minutely :)

Link Hit Time
---------- -----
1 1 4/1/2004 1:12:23 AM
1 2 4/1/2004 1:12:24 AM
2 3 4/1/2004 1:12:25 AM

Collecting more data can only help you.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
this? I store hits counter, firsthit and lasthit in the database having this
I could only show all the hits since creation to last hit but NOT for last
one week or couple of days....
"Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Are you not storing this in a database? That would be the ideal

solution --
just implement a simple function that logs hits to a page, along with a
time
stamp. It is also very flexible to report on whatever other parameters you want to report on.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a requirement where I need to make a report for each auto
dealer how
many hits they got on specified date range, so for each car detail

page I increment the counter and total it while doing that I store the last
hit date, this gives the total hits for the dealer BUT does not facilitate

date
range

How do I give the user a date range so that he can check how many hits

the dealer got lets say for last week OR last couple of days?

Thanks much!

Gary



Jul 19 '05 #6
You could have a background process summarize the rows each day into daily /
weekly buckets, and then delete out of the heavy usage table. That way the
table does not go out of control, it has at most a week of data at any one
time.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

"Garyrek" <Ga*****@hotmail.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl...
Hi Manohar / Aaron
I should have mentioned this earlier, this way the table gets too big
henceforth database, is there any other way like storing in a file or
using
pagecounter component?

thanks

Girish

"Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
Store individual hits, with timestamp, that way you are more data that
you
can report on -- weekly, hourly, or even minutely :)

Link Hit Time
---------- -----
1 1 4/1/2004 1:12:23 AM
1 2 4/1/2004 1:12:24 AM
2 3 4/1/2004 1:12:25 AM

Collecting more data can only help you.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> this? I store hits counter, firsthit and lasthit in the database having

this
> I could only show all the hits since creation to last hit but NOT for last > one week or couple of days....
> "Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
> news:OJ**************@tk2msftngp13.phx.gbl...
> > Are you not storing this in a database? That would be the ideal
> solution --
> > just implement a simple function that logs hits to a page, along with a > time
> > stamp. It is also very flexible to report on whatever other
> > parameters

you
> > want to report on.
> >
> > --
> > Manohar Kamath
> > Editor, .netWire
> > www.dotnetwire.com
> >
> >
> > "Garyrek" <Ga*****@hotmail.com> wrote in message
> > news:OG**************@TK2MSFTNGP09.phx.gbl...
> > Hi
> >
> > I have a requirement where I need to make a report for each auto dealer > how
> > many hits they got on specified date range, so for each car detail page
I
> > increment the counter and total it while doing that I store the last

hit > > date, this gives the total hits for the dealer BUT does not
> > facilitate
> date
> > range
> >
> > How do I give the user a date range so that he can check how many
> > hits

the
> > dealer got lets say for last week OR last couple of days?
> >
> > Thanks much!
> >
> > Gary
> >
> >
>
>



Jul 19 '05 #7
On Thu, 1 Apr 2004 16:06:47 -0800, "Garyrek" <Ga*****@hotmail.com>
wrote:
Hi Manohar / Aaron
I should have mentioned this earlier, this way the table gets too big
henceforth database, is there any other way like storing in a file or using
pagecounter component?

Why not analyze the web server log files for thyis information
instead?

Jeff
"Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
Store individual hits, with timestamp, that way you are more data that you
can report on -- weekly, hourly, or even minutely :)

Link Hit Time
---------- -----
1 1 4/1/2004 1:12:23 AM
1 2 4/1/2004 1:12:24 AM
2 3 4/1/2004 1:12:25 AM

Collecting more data can only help you.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Garyrek" <Ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> this? I store hits counter, firsthit and lasthit in the database having

this
> I could only show all the hits since creation to last hit but NOT forlast > one week or couple of days....
> "Manohar Kamath [MVP]" <mk*****@TAKETHISOUTkamath.com> wrote in message
> news:OJ**************@tk2msftngp13.phx.gbl...
> > Are you not storing this in a database? That would be the ideal
> solution --
> > just implement a simple function that logs hits to a page, along witha > time
> > stamp. It is also very flexible to report on whatever other parameters

you
> > want to report on.
> >
> > --
> > Manohar Kamath
> > Editor, .netWire
> > www.dotnetwire.com
> >
> >
> > "Garyrek" <Ga*****@hotmail.com> wrote in message
> > news:OG**************@TK2MSFTNGP09.phx.gbl...
> > Hi
> >
> > I have a requirement where I need to make a report for each autodealer > how
> > many hits they got on specified date range, so for each car detailpage
I
> > increment the counter and total it while doing that I store the last

hit > > date, this gives the total hits for the dealer BUT does not facilitate
> date
> > range
> >
> > How do I give the user a date range so that he can check how many hits

the
> > dealer got lets say for last week OR last couple of days?
> >
> > Thanks much!
> >
> > Gary
> >
> >
>
>



Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: George Stout | last post by:
First off I do not know alot about writing queries to an Access Database from an ASP page. This is why I need help. I have an Events database for 6 colleges in our metro area. On the homepage I...
3
by: Eric Wright | last post by:
I cannot find any information about what might cause this error, hope someone here can help. I am testing our new servers, windows server 2003 with a SQL Server database. There is an ASP page...
1
by: Elizabeth Harmon | last post by:
Hi All I am attempting to open a Word App from a web page and so far everything works (After reconfig of dcomcnfg for Microsoft Word Document). I have one minor problem, i cannot get the...
2
by: Jim Heavey | last post by:
Hello, when I place the command of "Page.Databind()" into my program, the program generates and error saying "value was outside of range". If I take the instruction out, then the page displays and...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For...
9
by: Rick | last post by:
I have a large list of objects where each object has a unique (non-overlapping) date range. The list is sorted chronologically. What is the most efficient way to search this list for a single...
30
by: Paul W Smith | last post by:
I have written a hit counter, which I believe counts the times my page is hit by a user for each unique session by the user. The relevant part of my code is below: If...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.