How to Add Google Analytics Code in WordPress Website?

I’m using WordPress from earlier days and now want to track our each user and their activities from Google Analytic. So how we can add Google Analytic code in our WordPress because I have search the entire WordPress but not found any option, where we can insert GA code.

Please describe the complete way. Thank you.

Add an Analytic code in your WordPress is quite easy. There are two major methods exist, one is manually add code before closing </body> tag, you also can add GA code in your WordPress footer.php file before closing </body> tag.

Secondly, via using WordPress plugin Google Analytic by Yoast. Personally I would recommend you to utilize second method because via this plugin you can even track website particular labels like download links, affiliate links, user activities in depth. Hopefully, the answered is your question.

Happy today!

1 Like

This post was flagged by the community and is temporarily hidden.