Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: cookies n variables

by cecil36 (Monk)
on Nov 15, 2002 at 20:58 UTC ( #213275=note: print w/ replies, xml ) Need Help??


in reply to cookies n variables

My boss and I were discussing how we could track outside referrals to our website. What we need to do is have a way to keep a referral ID with the user as they navagate our site from when they first enter all the way up to when they purchase a product or service. My temptation is to use a cookie and set it when the person enters. My boss is saying that people may have cookies disabled, and we need a way to track them as well. I said in response that in that case, we need to figure out what percentage of people who visit our site have cookies disabled and decide if it's going to be worth forgetting about those people. Is there a solution where we can track all the visitors to our site back to wherever they were referred from, regardless of whether or not they're accepting cookies?


Comment on Re: cookies n variables
Re: Re: cookies n variables
by jerrygarciuh (Curate) on Nov 15, 2002 at 22:39 UTC
    There are any number of ways to store this information and cookies would not have come to my mind as a solution to your problem. You need a record of $ENV{HTTP_REFERER} for each visitor so write it to a flat file on the server or store it in a database table if you have db access.
    HTH,
    jg
    _____________________________________________________
    "The man who grasps principles can successfully select his own methods.
    The man who tries methods, ignoring principles, is sure to have trouble.
    ~ Ralph Waldo Emerson
      Except I have found that many times that $ENV{HTTP_REFERER} has been blocked by a filtering proxy more frequently than cookies have been disabled.

      -Waswas

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://213275]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2014-07-31 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (253 votes), past polls