1
MadFish
Determining country of origin
  • 2006/1/11 4:08

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


Can anyone suggest some logfile analysis software that gives good information on the *country of origin* of website visitors?

At the moment we are using Webtrends, but it registers 40% of visitors as 'unknown' location. Some countries such as Vietnam never show up, even though we know they use the site. We need this information so that we can justify continuing to run
our site!

Thanks.

2
MadFish
Re: Determining country of origin
  • 2006/1/12 7:20

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


* Bump *

3
McDonald
Re: Determining country of origin
  • 2006/1/12 13:43

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


The module XM-Memberstats shows the country of origin of a visitor in a block but doesn't log any data.
Some counters can display the country of origin of a visitor. For this they use Ip-To-Country Database. This is a csv file with ip-ranges and the countries where they are registered.

Some counters:
- AWStats
- PHP i-Stats

4
defwind77
Re: Determining country of origin
  • 2006/1/12 14:13

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


hmm how would I integrate AWstats or PHP i-stats into xoops? would I need to add any code to templates?

5
McDonald
Re: Determining country of origin
  • 2006/1/12 17:13

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I think I was wrong about AWStats. This one is not to intergrate with a XOOPS site probably.

For PHP i-Stats 1.2 do the following:

1. create a folder called ie. stats in your modules folder.

2. edit the file include/config.inc.php according to the included install.txt

3. create a file called xoops_version.php with following info:

//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                                                    //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
// E-Mail:   none                                                 //
// Project:  The XOOPS Project (https://xoops.org/)                       //
// ------------------------------------------------------------------------- //


$modversion['name'] = "PHP i_Stats";
$modversion['version'] = 1.2;
$modversion['description'] = "PHP i-Stats. External script installed in XOOPS MODULES";
$modversion['credits'] = "Sam Tang";
$modversion['author'] = "Sam Tang. XOOPS bridge built by McDonald";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "stats_logo.gif";
$modversion['dirname'] = "stats";

//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";

// Menu
$modversion['hasMain'] = 1;

?>

You have to create the icon stats_logo.gif yourself.

4. upload all files including xoops_version.php to the folder ../modules/stats/

5. execute "sql/SQL_new_install.sql" with MySQL on phpMyAdmin or shell

6. insert the following code somewhere (ie. footer) into your theme.html file and replace yourdomain.com with your url:

<script type="text/javascript" language="Javascript">
      function 
replaceText(text){
          while(
text.lastIndexOf("&") > 0){
              
text text.replace('&''[i-Stats]');
          }
          return 
text;
      }

      var 
web_referrer replaceText(document.referrer);
      
      
script>


7. go to your admin panel, choose modules -> administration and install it as you do with a normal XOOPS module

8. PHP i-Stats has been added to your Main Menu now. If you click it, it will take you to PHP i-Stats.

Login

Who's Online

190 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 190


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits