bamme
Senior Member
Hi, im pretty new to SEO and have just signed up for Google Analytics.
Id like to add a blog to my analytics account but am confused when it asks me to input my tracking code - i would ideally want this on every page, including every post page..
i have included this in my wordpress theme's 'footer.php' file:
<div id="footer">
Copyright © <strong><?php bloginfo('name'); ?></strong>
</div>
<?php
wp_footer();
echo get_theme_option("footer") . "\n";
?>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
try {
_uacct = "UA-9738836-2";
urchinTracker();
} catch(err) {}</script>
</body>
</html>
will this work to include the tracking code on each and every page?
thanks!
emma
Id like to add a blog to my analytics account but am confused when it asks me to input my tracking code - i would ideally want this on every page, including every post page..
i have included this in my wordpress theme's 'footer.php' file:
<div id="footer">
Copyright © <strong><?php bloginfo('name'); ?></strong>
</div>
<?php
wp_footer();
echo get_theme_option("footer") . "\n";
?>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
try {
_uacct = "UA-9738836-2";
urchinTracker();
} catch(err) {}</script>
</body>
</html>
will this work to include the tracking code on each and every page?
thanks!
emma