To get the first click you'll need a small detection script on the homepage
to detect a new unique visitor along with their client variables (IP, user
details and CFID CFTOKEN values) and check your db for any previous db
entries for said user.

Then once you've determined they are new user and about to perform their
"first click" you can implement the redirect idea mentioned by others.
Otherwise just use plain links.

Personally I'd do the detection, set a flag, then write all links in an iif
statement basically saying - if this is a new user about to first click, go
to redirect, otherwise go straight to link target.

HTH,
Dave

-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 17:03
To: CF-Talk
Subject: RE: Tracking first 'click' off of a home page


I don't know about recording only the first click off the page.

However, it would be fairly easy (it seems to me) to build a "link tracker".

Just have a CF page that takes a URL as a param.  It inserts info about the
link and whatever else (session userID, time, etc) into the DB.  Then it
<cflocation>s to wherever the passed link points to.

Then you just change whatever links you want to track to a form like:
<a href="linktracker.cfm?page=www.targeturl.com/page.html">
(You'll probably want to escape some of this with URLEncodedFormat).


  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: robert_myers [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, September 19, 2002 11:42 AM
: To: CF-Talk
: 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!
:

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.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

Reply via email to