I would do it with a redirector page. * First, create a table with the "redirect" links and a count field (at the very minimum). Make the URL field the key * All links from front page go to a redirect page (i.e. /switchboard.cfm?loc=/dir/file.cfm) * On switchboard.cfm, do a cfquery to increment the count for that loc, then redirect the user to the URL they are looking for. * You could make it simpler to add URL's by doing some error handling around the query where you increment the count; if the URL.loc isn't in the database (i.e. it has just been added), you can do an insert and then redirect the user.
I created something like this for a databased redirect system that we just implemented; it takes place of the default 404 page and grabs the referring URL to determine the page that the user was trying to get to and then redirects based on that. 77 lines of some of the best code I have ever written... Pete ----- Original Message ----- From: "robert_myers" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 11:42 AM Subject: Tracking first 'click' off of a home page > I run a 1400 user Intranet for my company, and have a home page that has about > 3 dozen links to various resources (including other web servers -- > both internal and external). > > Could some one give be a head start on how I might record the user's *first* > click off this home page? No need to track them after that. > > I'd like to store it in a SQL 7.0 database to run queries against, and at a > minimum I'd like the CFToken, CFID, IP Address, and fully qualified URL > that the click refers to. > > I know very little about session/client management, but any articles or > publications pointed out would help me get over this limitation. > > This is a 4.5 environment running on Windows NT. (ya-ya, I know - quit > snickering). > > Some direction (and pointing out the pitfalls) would be much appreciated. > > ..and as always, thanks in advance! > > ..and as always, thanks in advance! > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

