Having a Google Analytics in WordPress and any other website platform is one of the most important things you need to do. Why? Not having it set up will disable you from having clear focus and vision where you are and where you need to be. Let me explain this little more.
Google Analytics basics
First things first, let’s talk some more about Google Analytics. The go-to service you need to get an insight on all the valuable data you need so that you can make your online presence that much better.
Google Analytics is, by far, the best analytic tool, a service for your website. A tool that tracks visits and performance of your site, giving you valuable insights on how you and your online efforts are performing. And, did I mention it’s free? Having GA installed on your website gives you powerful information that only improves your business efforts. Data like how many people are visiting your website, demographic, where are they coming from, how are they finding you, what kind of engagement they have are the type of things that can help you shape better strategy and plans.
All this info is there to help you present yourselves and your business in the best possible way. Let’s say, for instance, you have a video type of business, where you show your products and services through short video forms. So, you invested all that time, money, effort and work into creating original, fun and unique clips to present your business and you still have results you wanted, people are bouncing out from your website in a matter of seconds. And why? Having a Google Analytics may help you there by showing that, perhaps, the majority of your visitors come from mobile devices and your website isn’t well optimized. So, just by knowing that information, the fact that your visitors are using mobile phones to come to you can not only help you but change your business strategy for the better and boost your productivity. Because, as we show in our 2017 WordPress Themes Customer Survey report, a responsive website is one of most essential things every WordPress theme and business should have. And this is just one of the reasons why it’s important to have Google Analytics in WordPress websites and blogs.
How to add Google Analytics to WordPress
Now that we know all that, it’s time to show you how you can add Google Analytics in WordPress. You can do it two ways: manually and with the use of plugins. No matter what method you use, one thing is the same – you need to create a Gmail account which is your way to enter Google Analytics and set up the account there. Once you do all that and enter all required information (a type of property, website name, and URL, industry category, etc.), you will get your GA tracking code. This code you need to implement in your WordPress site in order to have access to all the insights mentioned above.
1. Add Google Analytics to WordPress manually
This option is a harder one since it requires you to have some coding knowledge. In order to set up GA tracking code in WordPress manually, you need to copy the code from your GA account and paste it into your WordPress site. You’ll do that by logging to your WP dashboard and clicking on Appearance >> Editor.
Once you get in, click the header.php file and paste the tracking code after the </head> tag. After that, you click on the Update file button, and you’re ready to go.
2. Add Google Analytics to WordPress using plugins
The other way of implementing Google Analytics code in WordPress is to use plugins. Easier and quicker way for sure. I personally use MonsterInsights plugin, but you can find many others like Google Analytics Dashboard for WordPress, Analytify Google Analytics Dashboard, Google Analytics+ and more.
Anyway, this option is excellent and safe for all of you who don’t know how to code or, just, don’t need to go through the manual process. Simply download and install the plugin, activate it from your dashboard, paste the GA Tracking ID Code into the plugin and you’re good to go! What’s also good – you get to see the Google Analytics insights straight from your WordPress dashboard – cool, right?
There you have it. All the info you need to add Google Analytics to a WordPress site or blog by yourselves. Hope this helps in not only explaining how to do it, but also why it’s so important to have one on your site.