Statistics
Statistics principle
1. code to be inserted in the pages models
Pages models must contain the code provided by the statistical service you use. Most of the time it is javascript code.
example for phpmyvisites :
<!-- phpmyvisites -->
<a href="http://www.phpmyvisites.net/" title="phpMyVisites | Open source web analytics"
onclick="window.open(this.href);return(false);"><script type="text/javascript">
<!--
var a_vars = Array();
var pagename="Statistiques";
var phpmyvisitesSite = 13;
var phpmyvisitesURL = "http://www.votresitedestats.com/phpmyvisites.php";
//-->
</script>
<script language="javascript" src="http://www.votresitedestats.com/phpmyvisites.js" type="text/javascript"></script>
<noscript><p>phpMyVisites | Open source web analytics
<img src="http://www.votresitedestats.com/phpmyvisites.php" alt="Statistics" style="border:0" />
</p></noscript></a>
<!-- /phpmyvisites -->
Ce code est à insérer dans chacune des pages de modèle dans le menu Habillage.
2. Link with statistic system
Umapresence do not contain a default statistical service. The default page under the "statistics" button is the following page : /umaservices/admin/stats.php.
If you want to integrate your statistic consulting page directly in the Umapresence administration interface under the statistic button, you have to modify this page. Please find hereunder the current code of this page :
<?php
//////////////////////////////////////////////////////////////////////////
// //
// _ _ ___ ___ ___ ______ _ _ ___ ___ ___ //
// | | | | / |/ | / | |___ / | | | | / |/ | / | //
// | | | | / /| /| | / /| | / / | | | | / /| /| | / /| | //
// | | | | / / |__/ | | / / | | / / | | | | / / |__/ | | / / | | //
// | |_| |/ / | | / / | | / /__ | |_| |/ / | | / / | | //
// _____/_/ |_|/_/ |_| /_____| _____/_/ |_|/_/ |_| //
// //
//////////////////////////////////////////////////////////////////////////
// //
// UMAPRESENCE : CMS Open Source par Umazuma //
// Version : 2.5.0 //
// Auteur : Yann Gibert <yann.gibert@umazuma.com> //
// Dernière modification : 31/01/2010 //
// Copyright © 2004- 2010 Yann Gibert - Umazuma ( www.umazuma.com ) //
// //
//////////////////////////////////////////////////////////////////////////
// //
// GNU General Public License (Version 3, Juin 2007) //
// //
//////////////////////////////////////////////////////////////////////////
?>
<div id="content" style="text-align:center;">
<br />
<br />
<br />
<br />
<br />
/////////// AUCUN SERVICE DE STATISTIQUES INSTALLE /////////// ///////////
<br />
<br />
<br />
<br />
<br />
</div>
To modify this page and include your own consultation page, you need to delete the content of the following tag : <div id="content" style="text-align:center;"> and replace it with the iframe which has for source your statistic consultation page.
Your page now should look like this :
<div id="content" style="text-align:center;">
<iframe
id="stats_phpmv"
name="stats_phpmv"
height="640" width="955"
src="http://www.votreSiteDeStats.com/index.php"
frameborder="0"
marginheight="0"
marginwidth="0"
style="border:1px solid #666; margin-top:20px;"</iframe></div>



S'abonner au fil RSS