Analytics

This commit is contained in:
pyg77 2011-06-24 16:42:53 +02:00
parent f430a2727e
commit 2dde6eb034
1 changed files with 22 additions and 0 deletions

View File

@ -50,6 +50,24 @@ function framanav()
}
}
function gAnalytics() {
echo <<<gAnalytics
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-896440-11']);
_gaq.push(['_trackPageview']);
(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);
})();
</script>
gAnalytics;
}
//le logo
function logo ()
@ -116,6 +134,8 @@ function sous_bandeau_admin()
'<span class="sousbandeau sousbandeaulangue">' .
liste_lang() . '</span>'.
'</div>'."\n";
gAnalytics();
}
@ -148,6 +168,7 @@ function bandeau_pied()
'<span class="sousbandeau sousbandeaulangue">' .
liste_lang() . '</span>'.
'</div>' . "\n";
gAnalytics();
}
@ -166,4 +187,5 @@ function bandeau_pied_mobile()
'<span class="sousbandeau sousbandeaulangue">' .
liste_lang() . '</span>'.
'</div>' . "\n";
gAnalytics();
}