469,924 Members | 1,389 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,924 developers. It's quick & easy.

Referral urls - counting hit in Access database

Hi Guys,

I have an interesting challenge:

We are about to begin building magazine adverts with specific query string
urls attached to a particular boat page which let us know which magazine url
was the referrer:

http://www.catamarans.com/charter/ba...atatonic/?m=cw

I would like to process this query and count how many times that url was
typed into the browser.

How does one implement a counter inside an access database to do
this.....for instance I could use a select statement to parse the
querystring before displaying the page but I am unclear as to how to ADD to
the Access field [fldTimesAccess]

m= Request("m")

Select Case CrewedCat

Case "cw" '//cruising world

Insert into Access database...

End Select

Could someone help me out here...this should be relatively straightforward
right?

Your help is appreciated.

Regards
Jason
Jul 19 '05 #1
4 1720
I would create a database with two tables.

REFERRER
CUST_KEY
CUST_DESC

HIT
CUST_KEY
HDATE - default to Now()

Put your customer key and information in REFERRER table.
Each hit will call an insert into the HIT table

This will allow more defined studies of information

Create a connection then a Command and execute an INSERT

Let me know if more is needed

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #2
Thanks dlbjr,

Could you confirm that Cust_Key is what I would refer to as a unique ID or
autonumber in Access

Thus:

REFERRER
Cust_Key Description
1 Sail Mag
2 Yacht Mage

HIT

fkCust_Key hDate
1 12 Nov 2003
1 13 Nov 2003
1 18 Nov 2003
2 12 Nov 2003
2 23 Nov 2003
1 1 Jan 2004
I am kind of unclear as to whether I should be incrementing a HIT counter
inside the database or in fact you are just inserting the key into the
HIT table and then will later use a query to tabalute and total the
insertions for a particular key.

One of the things I ponder is the possiblity that I need to connect the hits
to the particular month so maybe that is what your solution is giving me.

Could you elaborate further on how the two tables and future data mining
would work?

Thanks
Jason

"dlbjr" <do******@do.u> wrote in message
news:Avesb.183$Qy4.14240@typhoon01...
I would create a database with two tables.

REFERRER
CUST_KEY
CUST_DESC

HIT
CUST_KEY
HDATE - default to Now()

Put your customer key and information in REFERRER table.
Each hit will call an insert into the HIT table

This will allow more defined studies of information

Create a connection then a Command and execute an INSERT

Let me know if more is needed

-dlbjr

Discerning resolutions for the alms

Jul 19 '05 #3
Yes, an auto ID is great.
This is what the querystring from the referrer will send.

You stated "...in fact you are just inserting the key into the HIT table and
then will later use a query to tabulate and total the insertions for a
particular key."

Yes, this way you can predict which days have heavier traffic than others or
what hours produce the most hits. You get the idea.

-dlbjr

Discerning resolutions for the alms
Jul 19 '05 #4
Hey this works great!!!

I can now relate hits to particular month the advertisment was running.....

But, how would one use a query to tabulate a total per month.....Is this
quite simple to do?]

Many thanks for your help!

- Jason
"dlbjr" <do******@do.u> wrote in message
news:PIAsb.185$Qy4.14147@typhoon01...
Put these two files in a web folder and run the asp from the browser then
watch the data in the database.
This should get you going.

-dlbjr

Discerning resolutions for the alms

Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by C White | last post: by
1 post views Thread by COVAD | last post: by
7 posts views Thread by AES | last post: by
18 posts views Thread by ChadDiesel | last post: by
4 posts views Thread by aaronfude | last post: by
10 posts views Thread by jflash | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.