I’ve just added google analytics code. If you are not a coder or developer this can be a bit of a challenge.
Yes it needs to go in </body> of footer.php – but where/how to find this!
I went into my siteadmin and browsed the files. In my case plesk control panel provided by my web host. Using file manager I browsed to
httpdocs / wp-content / themes / mytheme
footer.php is a file in this folder.
(you may find httpdocs in your root folder or in your wordpress folder).
I selected ‘edit file’ . Footer.php is a short file and </body> is near the bottom of the page. I paste the code from google in, hit save, went back to google and clicked ‘check status’ and hey presto my google analystics is working ??
Hope this helps any other ‘non-technies’ looking for an answer
Rachel