Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides


  1. Fernanda says:

    This was great help! Thank you very much for the detailed info :)

  2. Rachel says:

    Just followed the video found it very easy to use. Thank you

  3. Bjorn says:

    Thanks a lot for the helpful tutorial!

  4. Pravin Nath.K says:

    Hey buddies, Install Google analytics using Yoast analytics plugin is best choice. If you are switch theme, the code will be on your blog forever.

  5. Andy Simpson says:

    Personally I’d use Google Tag Manager and then add GA

  6. Mina says:

    I used the plugins method. It was superb and easy as well! Thanks WPbeginner for your great tutorial.

  7. Amy Hunt says:

    I copied the PHP code straight into wordpress and it crashed my whole site, I had to go into my host files and delete it.

    Apparently I wasn’t supposed to use the PHP at the start or end of the code along with the // at the end but why was it included??

  8. Florence says:

    The video shows her putting the code in the footer, but the written material says to put it in the header. Thought I would point this out. It is very confusing. The video shows script in both header and footer, but no instructions to do both.

  9. saijad says:

    i followed second method for adding Google Analytics in my blog.

  10. Bud Johnson says:

    I have installed google analytics on my computer and have also installed google analytics dashboard for wp. I have carefully gone through all of the steps in the tutorial and obtained an access code. When I paste this access code into the feed and save it I keep getting an error message. It says I don’t have a valid account. Any suggestions?

  11. David Catlin says:

    I initially installed “Header and Footer” instead of “Insert Headers and Footers”–very confusing! It took me a while to figure out why what I was seeing on my site didn’t quite match the video, which was frustrating. I think I have it straightened out now.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.