Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 2110 → Rev 2111

/branches/v1.10-sodium/widget/modules/stats/squelettes/stats_tout.tpl.html
35,18 → 35,21
<title>Statistiques Identiplante / Pictoflora</title>
 
<!-- Stats : Google Analytics -->
<script type="text/javascript">
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20092557-1']);
_gaq.push(['_trackPageview']);
<script>
// répercussion de la config PHP pour ne solliciter GA qu'en prod
var prod = false;
<?php if ($mode_serveur == 'prod'): ?>
prod = true;
<?php endif; ?>
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
if (prod) {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57885-8', 'auto');
}
</script>
 
</head>