Register Now


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Add question


Register Now

Thank you for registering with WPTricks

Best Way To Add Google Analytics To WordPress – Many People Get This Wrong!

In this video, I will show you the best way to add Google Analytics to WordPress. Sadly most people get this wrong, but its ok, let me show you the right way to do it.

There are many ways to add google analytics to WordPress, but there is a catch.


Comments ( 50 )

  1. At 9 min 36, it asks me to log in with my Google Account… I Allow and then I get this on a blank page: "Analytify (Bug): GnuTLS recv error (-110): The TLS connection was non-properly terminated.Analytify (Bug): GnuTLS recv error (-110): The TLS connection was non-properly terminated." ????What next?

  2. Many thanks for this great tutorial!

  3. After watching this I've been using it ever since. Question ; what about Google Tags is it necessary to add the code snippets to the head and body of each page?

  4. Hi, Adam. Thorough as always! Can I add the analytics to a site plugin that I created for functions I want to add to my site? Thank you, Adam.

  5. thanks that video was a HUGE help. ~Cheers

  6. As a new blogger with Wix only experience. After playing with my WordPress Site, I was convinced that I was going to have to pay someone to complete my blog. After watching your videos, I feel much more confident in being able to do it myself. Thank You!

  7. Remarquable. À quand la suite ?

  8. Isn’t there a version of this with seo press?

  9. Astra custom layouts is only available in Astra Pro.

  10. Thanks for the plugin tip! It's taken me so long to get analytics on my site, and now thanks to this video, I got it! Thanks again, man!

  11. Thanks for this Adam. Question – I have SEO Press (& Pro) installed which has an analytics feature. Should I deactivate that one and use Analitify instead? Or keep everything together?

  12. I just made a switch from to Analytify after seeing this video. The plugin is great plus, apparently my previous plugin was slowing down my site cos now my scores on Gtmetrix are way better the what they were before i made the switch. Great plugin indeed.

  13. Analytify sucks. the interface is basically the same as monsterinsights with a cheesy visitor map that looks like it came straight out of kindergarten. There's not even the ability to use the scroll wheel to zoom in and out. I also dunno why monsterinsights to the visitor map out of the later versions. For the amount of money you need to pay it's too much a ripoff. Pathetic. Just install the normal analytics plugin from wp and you're good to go and you also can directly access your stats for individual pages and post.

  14. Hey Buddy:) I set up Analytify and it's pretty awesome, just how to get my site on Console ? Do I need to do this or it's not required as I have Analytify? thanks !!!

  15. Sir
    May we use google xml sitemap and Yoast SEO together in a WordPress site

  16. Can't explain how extremely helpful this video was for me. Thank you!

  17. Wow just added GA to my site whilst following your video. Saved me a ton of stress! Do you have a Patreon account I want to buy you a beer to say thank you!

  18. Hello,

    Great tutorial. I followed all the steps but I noticed a couple of things. When you hit "view source" shouldn't the tracking code appear in the <head> section? Also, I'm on my site right now and in analytics through Google (not through the plugin) and it says that 0 people are on "real time". I just set this up a couple hours ago and I know for proper data it can take some time, but shouldn't real time viewers still show me on currently?

    Much appreciated.

  19. Excellent information. I followed your instructions for the plug-in and it worked perfectly.

  20. Adam, Thanks so much for this video. I was struggling with getting site linked to analytics and the Analytify plugin is absolutely wonderful. May need to go to the Pro version just to give the developers some $'s for such a great job.

  21. Thanks Adam for this video. Most instructors don't show you how to install something like this from beginning to the end, but you did and I'm very appreciative.

  22. I'm getting a bunch of "(403) User does not have sufficient permissions for this profile." can anyone help??

  23. Thanks Adam. very grateful. Newbie to analytics and was definitely finding it all a bit overwhelming. Thanks for your clear and concise info. Once I start using analytics, I will need to amend my privacy policy to refelct that. How do you advise one do this…(text you would add?)…AND is there more to know with GDPR…? Thanks again. I'd love it if you could respond. kind regards

  24. Hey Sir. Just want to ask. I delete in my google analytics one of our website. As I deleted and return after the data in the previous day/months cannot retrieve?

  25. so why not add the code to a Header.php file in a child theme instead?

  26. Nice educational Video. I like to find out about Google Analytics.
    1- Do I need to put Google Analytics codes in Yoast SEO Plugin
    2- I am also using a Alalytify Google Analytics Plug-in Do I need to put Google Analytics here.
    3- I am using a Divi Theme that have a place for header where I can put my google Analytics codes.

    Question Can I put my Google Analytics codes on all 3 places
    What exactly happened if I put Google Analytics codes on all 3 places.
    or I put only inside of Alalytify Plug in

  27. Adam, WOW – your videos are changing the way I provide SEO services to my customers. They are insightful, easy to consume, and specific to the topic covered. Thank you so much for sharing this information!

  28. Hi all, great video and great plugin so far…

  29. i need help please

    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    Edit Themes

  30. Thanks a lot for your AWESOME Guide

  31. when is the best time to install google analytics, when you are building a website or when the website is finished ?

  32. This does not work in germany. I get error: Error calling GET…..

  33. Just waiting on that Appsumo deal video from Adam now…

  34. Can i do through Monster insights?

  35. hello, how can i take off or delete that script code from my header, i used a header code adder plugin and i have a gut that it migh be placed in a wrong way or it can mess up my site in the future

  36. I just added this to my new wordpress blog. This is fantastic, easy to use and so nice to look at. The update to the colors of the Pro vs Free was updated.

  37. This was VERY helpful for a newbie like me. Thanks for taking time to make this video and share your knowledge!

  38. It adds an ad on every page of yours? How is this a good plugin?

  39. Added a website to my analytics. Followed the video new site doesn't show up in Analytify dashboard drop down list? What now?

Leave a reply