Archived
Moved GA from footer to header
This commit is contained in:
1 parent
0d4aaa44d2
commit
32fa2ccd41
2 files changed
+15
-15
No files matched your search
@@ -11,19 +11,5 @@
|
||||
</footer> <!-- end footer -->
|
||||
</div> <!-- end #container -->
|
||||
<?php wp_footer(); ?>
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-52914-3']);
|
||||
_gaq.push(['_setDomainName', 'studiofestivalen.no']);
|
||||
_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>
|
||||
</body>
|
||||
</html>
|
||||
@@ -34,7 +34,21 @@
|
||||
<?php wp_head(); ?>
|
||||
<!-- end of wordpress head -->
|
||||
|
||||
<!-- drop Google Analytics Here -->
|
||||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-52914-3']);
|
||||
_gaq.push(['_setDomainName', 'studiofestivalen.no']);
|
||||
_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>
|
||||
<!-- end analytics -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user