Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting referrals (where user clicked to get to your site)

Discussion in 'Website Design Forum:' started by mike_watts, Apr 24, 2009.

  1. mike_watts

    mike_watts Member

    My client's website has a generic form on everypage and various other forms on various pages.

    What he wants to find out is where the user came from (and I then post that info along with the info from the form when it's submitted).

    The purpose is that he wants to know specifically where leads have come from google search results or google pay-per-click ads.

    Does anybody have any pointers or ideas?
  2. Harry

    Harry Senior Member

    Google analytics?
  3. Sunburn

    Sunburn Active Member

    As Harry said, Google analytics will give you you all that information and tracking ability straight out of the box, with very, if no modification.
  4. darren

    darren Member

    Look at the PHP $_SERVER array.....

    PHP: $_SERVER - Manual

    in particular $_SERVER['HTTP_REFERER']

    of course this can be spoofed, or not included .. but then so can all other techniques.
  5. darren

    darren Member

    You can test it with a simple page

    or if you want to see everything included in the $_SERVER array..

    or individually

  6. Russell

    Russell Member

  7. br3n

    br3n Senior Member

    I think you can do similar with google? as in plain old simple google. (although that one is better ^)

Share This Page