Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to track record requests?

Status
Not open for further replies.

kydavis

MIS
Nov 16, 2005
6
CA
My site pulls its data from my DB through coldfusion. I have pages for Individual records (If the user selects a certain band, they are taken to that bands page). For each band, I would like to keep a record of how many people have viewed that bands page. As I said before, all of this information is dynamic, so It would need to track a certain URL variable or times that a certain record was requested. How can I do this?
 
instead of linking straight to the bands page, can link to a script that will update the databse to show that someone clicked, then it will redirect them to the site.

So instead of a link like

Code:
<a href="[URL unfurl="true"]http://thisbandswebsite.com">Visit[/URL] This Band's Site</a>

you would do

Code:
<a href="[URL unfurl="true"]http://yoursite.com/sendtoband.cfm?band=33">Visit[/URL] This Band's Site</a>

sendtoband.cfm would contain code that will update the database, and redirect the visitor to the bands site.
 
I second imstillatwork's idea, that is the same thing that Yahoo and those type of sites do. (check their URLs.)

Kris Brixon
www.brixon.org
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top