Is this possible In PHP?

Discussion in 'PHP' started by Robert25, Oct 8, 2009.

  1. #1
    Hello Pros,

    I need a script by which I can track visitor’s traveling process .

    For Example,

    My site name is XYZ.com

    Visitor enter my site by finding link on dmoz.org and he finds dmoz.org by using google.


    Is it possible to track how visitor has traveled to my site.

    Like ‘A’ = Google>> Then ‘B’ = Dmoz >> At last ‘C’ = XYZ.com(Mysite)

    I want to Detect the ‘A’, Value of ‘B’ I am getting from $_SERVER['HTTP_REFERER'].

    Any one can help me for this.

    Regards
     
    Robert25, Oct 8, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No, it's impossible. You cannot know this. Privacy issues and all that.
     
    premiumscripts, Oct 8, 2009 IP
  3. Robert25

    Robert25 Peon

    Messages:
    939
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If we pull some data from browser then? like history..
     
    Robert25, Oct 8, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, you cannot access that. It's impossible. There's a css trick to see if a user visited a specific page but you'd need to know the specific page. You cannot access the history apart from the referrer.
     
    premiumscripts, Oct 8, 2009 IP
  5. w47w47

    w47w47 Peon

    Messages:
    255
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can only get the las URL from where the user came from.
     
    w47w47, Oct 8, 2009 IP
  6. Robert25

    Robert25 Peon

    Messages:
    939
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I am not getting this, can you give me any example of this css trick. I think, yes there is a specific page.
     
    Robert25, Oct 8, 2009 IP
  7. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #7
    premiumscripts, Oct 8, 2009 IP
  8. caprichoso

    caprichoso Well-Known Member

    Messages:
    433
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #8
    May be you would want to modify the script that pulls bank account information to get the browser history instead. :rolleyes:
     
    caprichoso, Oct 8, 2009 IP
  9. Robert25

    Robert25 Peon

    Messages:
    939
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #9
    See don't take me wrong, I am not that savvy programmer. I am just giving a logical thought because companies like compete.com are working on similar concept.

    Probably at this point of time it don't seems logical but I was just checking an option.
     
    Robert25, Oct 8, 2009 IP
  10. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If compete.com does it, it's probably via a toolbar. Browsers simply do not allow this, as said before it would be disastrous for privacy and security reasons.
     
    premiumscripts, Oct 8, 2009 IP
  11. caprichoso

    caprichoso Well-Known Member

    Messages:
    433
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #11
    In fact, as premiumscripts said, compete.com and Alexa collect data from toolbars installed on end-users browser. Those toolbars track user behaviour and send resulting data to their database.
     
    caprichoso, Oct 9, 2009 IP