Analytics
This commit is contained in:
parent
f430a2727e
commit
2dde6eb034
22
bandeaux.php
22
bandeaux.php
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user