diff options
-rw-r--r-- | skins/Vector.php | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/skins/Vector.php b/skins/Vector.php index 8f2626c..8fdbb7c 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -445,21 +445,6 @@ class VectorTemplate extends QuickTemplate { $this->data['personal_urls'] = array_reverse( $this->data['personal_urls'] ); } - - $wgOut->addScript(' -<script type="text/javascript"> - var _gaq = _gaq || []; - _gaq.push(["_setAccount", "UA-18603191-2"]); - _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> -'); - // Output HTML Page $this->html( 'headelement' ); @@ -614,6 +599,17 @@ class VectorTemplate extends QuickTemplate { <!-- Debug output: <?php $this->text( 'debug' ); ?> --> <?php endif; ?> </div> + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(["_setAccount", "UA-18603191-2"]); + _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> <script src="//nav.mageia.org/js/"></script> </body> </html> |