It’s better to insert it before the closing </body> tag.
This is better for SEO.
But what page do I insert the code in? What is my home page?
Try looking in your theme’s footer.php file.
This is what my theme’s page looks like:
[2491 lines of CSS moderated as per the Forum Rules. Please just post a link to your site.]
Try looking in your theme’s footer.php file.
Appearance -> Editor. Select your theme. Look for footer.php.
I searched for the string ‘footer.php. but there were no results.
Like esmi says, just locate your footer.php file, and paste it in there… it will load on every page of your site.
I also use the plugin Google Analytics for WordPress, which may be easier.
Look to your theme folder, it there is no footer.php look at index.php.
You can also put the google analytics code after dhe opening <body>, which usually is at header.php
I’ve tried to upload the plugin and got this: Could not create directory. /wp-content/upgrade
How can I solve this?
Thanks,
Torsten
Perhaps you should consider hiring someone to carry out this work for you.
Have already done so ;-).
Thanks for the suggestion.