Need a script that...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Goonx
    Confirmed User
    • May 2002
    • 1048

    #1

    Need a script that...

    will show the user how long (timewise) he spend on a certain web page. The time will stop as soon as the user closes that page and will start again (from the same point) when the user visits that same page again, and so on...

    Anyone knows where I can find something like that? or if someone thinks he can custom program it for me in either php or cgi (gotta work on NT), let me know how much you think it will cost to do it...


    ...
  • some_idiot
    Confirmed User
    • May 2002
    • 1511

    #2
    You want it on your side right?

    Assuming so, it's a that can be done 2 easy ways.

    1: 0 size frame with a 1 second refresh and count
    them up from the access file.

    2: A "ping" every second with a cookie. Alot more
    accurate when it comes to AOLers. (most likely java)

    Cost, ... you're going to need a 24 of programmer's
    fav brand and a hooker. This going to be boring one
    to do.

    This AVS pays my mortgage!

    Comment

    • Goonx
      Confirmed User
      • May 2002
      • 1048

      #3
      Originally posted by some_idiot
      You want it on your side right?

      Assuming so, it's a that can be done 2 easy ways.

      1: 0 size frame with a 1 second refresh and count
      them up from the access file.

      2: A "ping" every second with a cookie. Alot more
      accurate when it comes to AOLers. (most likely java)

      Cost, ... you're going to need a 24 of programmer's
      fav brand and a hooker. This going to be boring one
      to do.
      what?? i think thats bullshit, i've seen simple javascript that measure the time you have been on a web page, i think all that frames, and refresh and pings stuff is bullshit, i'm sure there is a very easy way of doing this...

      only problem is that I need the time to add up with the total time of the users last visit and so on...
      Last edited by Goonx; 09-22-2002, 06:16 PM.

      Comment

      • Goonx
        Confirmed User
        • May 2002
        • 1048

        #4
        .

        Comment

        • richard
          Confirmed User
          • Feb 2001
          • 543

          #5
          you could count up in javascript and popup an exit url to count the time.

          exit.cgi?time=123

          Comment

          • Goonx
            Confirmed User
            • May 2002
            • 1048

            #6
            ok, will this be easier to do?

            The same thing as I said before, only insted of counting the time, it will simply count the clicks...

            Comment

            • some_idiot
              Confirmed User
              • May 2002
              • 1511

              #7
              Originally posted by Goonx


              what?? i think thats bullshit, i've seen simple javascript that measure the time you have been on a web page, i think all that frames, and refresh and pings stuff is bullshit, i'm sure there is a very easy way of doing this...

              only problem is that I need the time to add up with the total time of the users last visit and so on...
              You want to track trends or have a clock on the
              surfer page? ... If you've seen it, why ask in 2 threads?

              If the browser ain't sending a keepalive, you don't
              know shit about if he's on the page or not. Cookies
              make sure you're not tracking a proxy.

              Sit down, think about what you want and write it up.
              Drinking and requesting work done is a bad thing.

              Browsers don't tell the server when they're closing
              a page and PHP is server side. You're looking at Java
              or picking apart the httpd access logs on the site
              if I'm understand that you want to know time trends.

              This AVS pays my mortgage!

              Comment

              • Goonx
                Confirmed User
                • May 2002
                • 1048

                #8
                Originally posted by some_idiot


                You want to track trends or have a clock on the
                surfer page? ... If you've seen it, why ask in 2 threads?

                If the browser ain't sending a keepalive, you don't
                know shit about if he's on the page or not. Cookies
                make sure you're not tracking a proxy.

                Sit down, think about what you want and write it up.
                Drinking and requesting work done is a bad thing.

                Browsers don't tell the server when they're closing
                a page and PHP is server side. You're looking at Java
                or picking apart the httpd access logs on the site
                if I'm understand that you want to know time trends.
                yes, I need a clock on the surfers page... the problem with java and cookies is that is the surfers views the page from a different computer the timer will just start from 0. so i'm looking for something on the servers side...

                Comment

                • Nbritte
                  Confirmed User
                  • Sep 2001
                  • 689

                  #9
                  http://javascript.internet.com/page-...top-clock.html

                  Brian

                  btw I have been at that page for 1 minute and 20 seconds

                  SexyCityCash gets in Bed with PornoDan

                  Comment

                  • untitled
                    Confirmed User
                    • Aug 2002
                    • 352

                    #10
                    I could do this with php sessions, when the user visits your page it'll put the entry time in the session and when they exit it'll calculate up the time. this way you could store the time in a database if needed.

                    email me at [email protected] if your interested.
                    Suicide isn't so bad, give it a chance...

                    Comment

                    • cgiGeek
                      Confirmed User
                      • Jan 2002
                      • 203

                      #11
                      Originally posted by richard
                      you could count up in javascript and popup an exit url to count the time.

                      exit.cgi?time=123

                      the boy is right.

                      I dont knwo if it s just me, but I can never make any sense out of some_idiot tech specs.

                      ALso if u check logs for ip, u can tell how long did a user stay in on a page, by substracting the later page timestamp from the referer page timestamp, and for the exit page, just tabulate avarage vistit lenght.
                      Need help dealing with a hacked website? Contact me via icq 163583431 :D
                      Premium Bandwidth Managed Servers, 12 Years in business xxxHOSTit.com
                      I work for xxxhostit.com

                      Comment

                      Working...