Adding Google Analytics tracking code
This commit is contained in:
1 parent
7107222e57
commit
090338d12e
1 file changed
+17
-1
+17
-1
@@ -532,6 +532,22 @@ possibly include it instead? --Thomas Misund, 26. Oct 2009
|
||||
</div> <!-- #content-wrap -->
|
||||
|
||||
<?php
|
||||
// Print Google Analytics tracking code
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-52914-1']);
|
||||
_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>
|
||||
<?php
|
||||
|
||||
$time_end = microtime(true);
|
||||
$time = round(($time_end - $GLOBALS['time_start']), 4);
|
||||
@@ -3306,4 +3322,4 @@ Teksten under er hentet fra kunnskapsdatabasen. Du st
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in new issue
Block a user