Home  |  Linux  | Mysql  | PHP  | XML
From:Martin_Zvarík Date:Fri Aug 27 13:17:57 2010
Subject:Re: finding out if a user left our website ?
Dne 25.8.2010 22:32, Vinay Kannan napsal(a):
> Hello Guys,
>
> Wanted to know if there is a way for us to find out, when a user moves away
> from our website( closing the window and entering a different url in the
> address bar )
>
> closing the window i guess, we could use the javascript onclose or something
> similar but for the user moving away from my website by entering a different
> URL is what i would like to be able to find out.
>
> Thanks,
> Vinay
>

Hi,
you can use: window.onunload function()

In this function you can add an AJAX that sends a server request that
the user left.

I used it for administration and it worked in 80% of cases - sometimes
the request is just not sent.


Martin
Navigate in group php.db at sever news.php.net
Previous Next


Your recent visits
Re: [PHP-DB] Re: Need Help with database output
Re: [PHP-DB] Re: Need Help with database output
Re: [PHP-DB] finding out if a user left our website ?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants