DD,

We have some code that we use in the application.cfm at "homepage" level.

Here is the code we use:
<!--- wehre did the user come from? How did they find us?  --->
<cfif (cgi.http_referer CONTAINS "mfgquote.com" is "NO") and
(cgi.http_referer is not "")>
        <cfif isDefined("URL.source")>
                <cfset Promo = URL.Source>
        <cfelse>
                <cfset Promo = "">
        </cfif>

        <CFQUERY NAME="InsertReferer" DATASOURCE="#myDSN#">
                INSERT INTO RefererLog
                                (CFIdCFToken, refererURL, IP, Browser, Promo)
                VALUES  ('#cookie.CFID#:#cookie.CFToken#', '#cgi.http_referer#',
'#cgi.REMOTE_ADDR#', '#cgi.HTTP_USER_AGENT#', '#promo#')
        </CFQUERY>
</cfif>

As you can see above we insert the referer from "outside sources" into a
database table.

We also use the variable "promo" for URLs that come from Paid advertising so
we can track it.  Then upon registration we do an update of this table based
off the user's CFID:CFTOKEN.  Is this a perfect way?  NO, but it does give
us some great metrics to know how much each registered user costs us.

Hope this helps,

Jeremy

Jeremy Bruck, VP of Technology
::MfgQuote
2690 Cumberland Parkway SE
Suite 510
Atlanta, GA  30339
TEL:   678.556.2929
FAX:  678.556.2980
www.mfgquote.com
[EMAIL PROTECTED]


-----Original Message-----
From: Double Down, Inc. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 5:05 PM
To: CF-Talk
Subject: Tracking Refferal Pages


Can anyone suggest a good method for tracking what page bought a surfer to
my page? I need to be able to get that information and put it in a DB.

TIA

DDINC

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to