#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    1
    Rep Power
    0
    In tracking my advertising campaign, i had hoped to create a cookie that would track the link the usercame from before entering my site. I could place the cookie on the index page, with the link they came from, then call it back on the order page, inserting it into a hidden field, so i know who their referrer was.

    Any ideas on a http variable or something? or some way to do this?

    thanks


    ------------------
    Sam Petulla
    WebMaster/Designer
    InterServer.Net
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    Yes,
    Use the PHP variable $HTTP_REFERER to get the last URL that your visitor was at.


    ------------------
    PHP, Perl, SQL Programming at http://www.mentalobjects.com
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    4
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by esconsult:
    Yes,
    Use the PHP variable $HTTP_REFERER to get the last URL that your visitor was at.
    [/quote]

    What other env variables are availablbe, where can I get a list from. And whats the best way to track a user once he enters my site. (like which pages he visits, how long he takes, etc)?

    Appreciate it if u could help out
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    A whole list is at: http://www.php.net/manual/language.v...predefined.php

    If you really want to program in PHP make www.php.net your start page. The manual is better than most printer manuals.


    ------------------
    PHP, Perl, SQL Programming at http://www.mentalobjects.com

Similar Threads

  1. Can user A read user B's session?
    By Stupid Khor in forum PHP Development
    Replies: 9
    Last Post: May 11th, 2004, 05:19 AM
  2. Multiple Cookies for user
    By Chris24 in forum HTML Programming
    Replies: 0
    Last Post: January 22nd, 2004, 09:27 AM
  3. php user levels
    By dynasty in forum PHP Development
    Replies: 1
    Last Post: January 20th, 2004, 02:01 PM
  4. How to get multiple sessions for one user working?
    By jkoerber in forum PHP Development
    Replies: 1
    Last Post: January 16th, 2004, 01:23 PM
  5. Is there a drop-in user control module?
    By Kent Wang in forum PHP Development
    Replies: 3
    Last Post: December 20th, 2003, 05:20 AM

IMN logo majestic logo threadwatch logo seochat tools logo