I used Google Analytics on a Joomla project. As far as I remember, all you do is paste the GoogleAnalytics Tracking Snippet in footer.php just before the closing </body> and </html> tags. That should be all.
When it comes to codes I get lost! Where do I find footer.php?
You can use this in your functions.php file:
<?php
add_action('wp_footer', 'add_googleanalytics');
function add_googleanalytics() { ?>
// Paste your Google Analytics code here
<?php } ?>
Sorry for the like of technical skills but where do I find the functions.php file? When found I presume you just paste it in?
mjw architects,
You can find the functions.php and footer.php under your activated themes folder
wp-content\themes\<theme-folder-name>\functions.php
wp-content\themes\<theme-folder-name>\footer.php
for example, default theme folder will be
wp-content\themes\default\footer.php
Thanks,
Suresh
http://www.largeresource.net
Go to Appearance/Editor in your admin panel, select the Footer template, and paste the code somewhere above the </body> tag.
Or, use a plugin instead:
http://wordpress.org/extend/plugins/google-analyticator/