Sempre achei muito interessante podermos saber o máximo de informações sobre os visitantes do nosso site/aplicativo, além disso com esses dados podemos na realidade perceber de onde vem o visitante, que sistema operativo, resolução de ecrã, versão do flash, país etc….já que com estas informações podemos optimizar o nosso site/aplicação. I always thought much interesting can learn as much information about visitors to our site / application, in addition to these data we can actually see from where comes the visitor, that operating system, screen resolution, flash version, etc ... country. because with this information we can optimize our site / application.
Uma possibilidade é usar o google analytics, mas acabáramos por andar um pouco perdidos com a API, interpretação da mesma e além disse em sites com um número elevado de visitas o google analytics será pago… o que decidi fazer, pode ser feito com qualquer outro sistema de estatísticas openSource. One possibility is to use Google Analytics, but acabáramos by walking a little lost with the API, the interpretation thereof and also on sites with a large number of visits Google Analytics will be paid ... I decided to do, can be done with any other opensource system statistics. No meu sistema de imobiliária ( http://msdevstudio.com/blog/2008/02/27/backend-sistema-imobilirio-gesto-de-imveis/ ) inicialmente estou a utilizar esse sistema, embora terei que o alterar se a versão for para comercializar devido à licença GPL debaixo da qual foi disponibilizado o sistema que voou falar. In my own system of real estate (http://msdevstudio.com/blog/2008/02/27/backend-sistema-imobilirio-gesto-de-imveis/) initially'm using this system, although I have to change to the version is to market because of the GPL license under which the system was made available to talk flew.
O sistema em si é o Stats Indexer 1.3 disponivel a correr em: http://members.lycos.nl/promajo/statsindexer.php The system itself is the Stats Indexer 1.3 available to run on: http://members.lycos.nl/promajo/statsindexer.php
Tudo o que tem que fazer é o seu download em: http://members.lycos.nl/promajo/dl/StatsIndexerJDL.rar e instalar o sistema normalmente na mesma directoria onde estará a pagina a ser monitorizada (primeiro configurar e criar as tabelas), depois apenas inserir numa pagina comum (Geralmente na que corre o swf, index.html ?, para obterem o máximo partido do script, o vosso ficheiro (.swf) deve ser inserido numa pagina .php eo servidor deve ter suporte a php ) o primeiro código disponível no index-readme.txt. All you have to do is your download at: http://members.lycos.nl/promajo/dl/StatsIndexerJDL.rar and install the system usually in the same directory where the page is being monitored (the first set and create the tables), and then just insert a page position (which is usually in the swf, index.html?, in order to get the most out of the script, your file (. swf) should be placed on a page. php and the server must have support php) the first code available on index-readme.txt.
Depois basta acederem ao vosso index.php 3 ou 4 vezes para “encher” dados na base de dados e ver as estatísticas correndo o ficheiro statsindexer.php Then just access to your index.php 3 or 4 times to "fill" data in the database and see the statistics at the file statsindexer.php
O sistema em si está a funcionar, mas como queria esses dados no Flex, teria obrigatoriamente que o passar por xml ou usando o amfphp. The system itself is working, but wanted them in the Flex, which would necessarily pass through the xml or using AMFPHP. Foi esta segunda opção que usei. This was the second option I used. Deu algum trabalho mas lá acabei por criar um serviço para o amfphp o qual disponibilizo para download, este serviço está pronto a usar, bastando coloca-lo na pasta services do amfphp e usa-lo para obter os dados armazenados pelo stats Indexer. He gave some work but there just to create a service for which AMFPHP available for download, the service is ready to use, just put it in the folder of AMFPHP services and use it to obtain data stored by the stats Indexer. (Devem alterar no final do stats.php as informações de login da base de dados bem como o nome da mesma). (They should change at the end of the stats.php login information from the database and the name of it).
Basta darem uma vista de olhos nas funções deste meu serviço ou usarem o browser dos services do amfphp e testarem o servico stats para ver como os dados são devolvidos, depois basta criarem o serviço no flex para lidar com esses mesmo dados. Just take a look at the functions of my office or use the browser of the services of AMFPHP and test the service stats to see how the data is returned, then simply create the department to flex to deal with these same data.
Lá para o final de semana se tiver um pouco de tempo faço um exemplo de como recuperar esses dados e os colocar num gráfico em flex. Towards the end of the week if you have a little time to do an example of how to recover the data and put a graphic on flex.
Download Stats Indexer: http://members.lycos.nl/promajo/dl/StatsIndexerJDL.rar Download Stats Indexer: http://members.lycos.nl/promajo/dl/StatsIndexerJDL.rar
Download Service: stats.rar Download Service: stats.rar
Download amfPHP: http://sourceforge.net/project/showfiles.php?group_id=72483#files Download AMFPHP: http://sourceforge.net/project/showfiles.php?group_id=72483 # files
Espero que ajude “muita” gente I hope this helps "a lot" people 
Qualquer duvida, critica ou sugestão basta comentarem. Any doubts, criticism or suggestion just comment.
Abraços. Hug.
versão pdf temporariamente indisponivel. pdf version temporarily unavailable.