SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    user page tracking .. how ?

    hi all ..

    any1 idea that how can i track the user which page is watching ?

  2. #2
    SitePoint Addict
    Join Date
    Feb 2001
    Location
    Shanghai, China
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a simple way.
    You can have an id for each page like this
    PHP Code:
    www.link.php?id=22 
    and than store it the db together with the users IP.

  3. #3
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm...

    what is the site is dynamic...
    i mean there 1 file index.php wich will call the date from db like this ?cid=1&sid=1

    ?

  4. #4
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just idea what am think about ...

    make tabel with :
    vid
    vname
    vtime
    vses
    vpage
    vip

    vid is the the id,
    vname is the visitor name, if he registed then his name else will by guest .
    vses this the session which will track the visitor.
    vpage will by the user is .
    vip the visitot ip

    and each time the user or the visitor request a page the vses and and the vpage will update .


    what u think ?

  5. #5
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm...

    in the igot prob now ...
    how to delete the date from the table if the visitor leave the site ???


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •