checking visitor stay duration on site? how?

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default checking visitor stay duration on site? how?

    Hi,

    I would like to check how long a visitor stays on my (flash)site.
    I can start a timer with: starttime = getTimer(), then endtime =
    getTimer() and the visit duration then being: endtime-starttime

    But how can I check if the site is closed, and still send the 'endtime'
    to my database? Is there something like onUnload/onQuit? Or some equivalent?

    Or does anybody have another tip for doing this?

    Or do I need to do something with javascript and the html-page the site
    is on?

    Thanks,

    Job

    Job Guest

  2. Similar Questions and Discussions

    1. Allow-tag in Vhost.xml - is it address of .swf or the visitor?
      Hello, what is meant by the <Allow>address</Allow> im Vhost.xml? Ist it the address of the visitors PC or is it the address of the...
    2. cfoutput - show hyperlink for visitor
      i want to insert hyperlinks from my DB so that the end user can link on the cfoutput from that datasource query. when setting up the db in MS...
    3. getting the IP address of a visitor to a site
      Hi all, I am writting a hit counter and would like to get the IP address of a visitor to my site, can anyone point me in the right direction...
    4. Travel Photographers Site for checking
      Hi there, http://www.juliancastaldi.com/ I have designed nad built a site for a photographer, the client wanted some features that have casued...
    5. Checking if a site is available
      What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to...
  3. #2

    Default Re: checking visitor stay duration on site? how?

    > I would like to check how long a visitor stays on my (flash)site.
    > I can start a timer with: starttime = getTimer(), then endtime =
    > getTimer() and the visit duration then being: endtime-starttime
    >
    > But how can I check if the site is closed, and still send the
    > 'endtime' to my database? Is there something like onUnload/onQuit?
    > Or some equivalent?
    >
    > Or does anybody have another tip for doing this?
    >
    > Or do I need to do something with javascript and the html-page the
    > site is on?
    >
    > Thanks, Job
    My proposal would be a combination of ActionScript and JavaScript:
    [url]http://birdy1976.com/2003/onunload-and-flash-to-javascript.html[/url]

    Some more information about this example:
    http://groups.google.ch/groups?threadm=yi9ga.20$EO7.452629@newsserver.ip.p t

    Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398
    Martin Voegeli, vom Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139