Close #680 - Move Google Analytics to scripts.php
This commit is contained in:
@@ -5,13 +5,4 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<?php if (GOOGLE_ANALYTICS_ID) : ?>
|
||||
<script>
|
||||
var _gaq=[['_setAccount','<?php echo GOOGLE_ANALYTICS_ID; ?>'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
Reference in New Issue
Block a user