Home » Connecting Google Analytics To WordPress – Plugins VS Code

Connecting Google Analytics To WordPress – Plugins VS Code


Each of the website owners needs precise statistics for the website performance. This will not only help you to set up a unique strategy to increase your website traffic more, but also will guide you to make important changes to improve your business. In this big deal, you can fairly trust Google Analytics. It is a great tool for knowing more about your website activities and recent statistics. To gain a good piece of knowledge about connecting Google Analytics to WordPress you need to keep reading this article.

What is Google Analytics?

Google Analytics was launched in 2005. It helps you get total information about your website’s performance. This is a necessary tool for your business strategy. Because it assists you to make important decisions leaning on the website performance indicator.

By using Google Analytics you may see how the users find your site due to the “Acquisition” section. This will effectively change your strategy. Because you will understand from where you get the highest traffic (Google ads, Social Media, Other websites).

Besides, you may see what people do on your website. You can manage this by using the “Behavior” section. Not only you can see your website visitors, but also identify which of your pages is the most visited among the users.

Setting up the “Conversion Tracking” option in Google Analytics you can suggest your visitors filling some forms, leave Email addresses or simply purchase your product.

Another advantage of GA is that it’s absolutely free and much easier than other platforms.

So, if you build your website through WordPress you can connect Google Analytics to your site in many different ways. But we would like to tell you about the two of them:

  • Adding code manually
  • Using plugins

Connecting Google Analytics to WordPress via code

As we mentioned above, you can integrate WP and Google analytics manually by using code. But it is not as complicated as it seems. You just need your code to copy/paste.

And here are the simple steps to integrate GA via code:

Step 1

The first step will be signing up in Google Analytics. It is very easy.


Step 2

In your first step, you should choose a property type whether it is a web or app. You need to enter your website account name. And after making sure that everything is clear you need to press “Click next”.

Step 3

In the third step, you must add the website name as “Property”, fill in the “Reporting time”, and “Currency”.

Step 4

After filling completing all these details you can move forward to the “Advanced options”. Here you need to paste:

  • Your website URL
  • Choose “Create a Universal Analytics property only”

Step 5

At this point, you can select your business type, size, and several other features.

Step 6

After the previous step, you will be transferred to another window, where you will meet a tracking code and tracking ID.

Step 7

So, you’ve already completed the most important steps. Now, it is time to finish the integration process.

You need to go to the WP dashboard, then “Appearance” and after that “Theme Editor”. If you are already in that section, you can click on the “Theme Header”. After that, you should just “Select theme to edit” and spot <head> on the screen. And your last step will be pasting the copied items and “Update File“.

That is how Google Analytics will be integrated into your WP website via code. But you just need to consider that you will see the data in the GA dashboard after forty-eight hours.

Connecting Google Analytics to WordPress via Plugins

If you do not like the previous way of integration, or simply want to use another easier way then you can read this paragraph thoroughly. So, here you may meet all the needed information on how to connect Google Analytics to WordPress via plugins.

The WordPress GA plugins attach your tracking ID to each page of your website. The process is completed automatically. So it is quite easier than adding the tracking code manually.

So, here is the list of the 5 most recommended Google Analytics plugins used to connect GA to WordPress.

1. GA Google Analytics


GA Google Analytics plugin is one of the widely used ones in WordPress. It has over 600.000 active installations and a “five-star” rating.

GA Google Analytics is GDPR compliant. It is free to install. But to access advanced features you need to activate the Pro version.

Due to this plugin, your Google Analytics tracking code can be automatically added to all of your website’s pages.

In its free version, the GA Google Analytics plugin supports:

  • Google Analytics 4
  • Global site tag
  • Universal analytics
  • Display Advertising
  • Enhanced link attribution
  • IP anonymization and force SSL
  • Custom tracker objects

So, these are the limited features of the Free Version. But in case you want to access such options as Visitor Opt-out Box, custom code, extensive docs and tutorials, and much more, you can activate the Pro version.

So here are the GA Google Analytics plans:

  • Personal– $15 (lifetime)
  • Business– $30 (lifetime)
  • Advanced– $60 (lifetime)
  • Developer– $120 (lifetime)

2. Analytify


Analytify has more than 60.000+ active installations on the official WordPress website and a rating of 4.7 out of “5-stars”.

This plugin will enable you to see the analytics reports within your WP admin area. You may also check your page statistics. Analytify gives you an opportunity to utilize “eCommerce tracking” for “WooCommerce” and “Easy Digital Downloads”. The plugin can send you everyday email reports related to your post or page statistics.

Besides the Free version, the Analytify WordPress plugin offers you its Pro Version with more advanced features.

There are 3 annual packages:

  • Developer– $299
  • Conversion– $99
  • Pro– $59

3. MonsterInsights


MonsterInsights is highly recommended by WordPress users. It has more than 3.000.000 active installations. And its rating is 4.6/5 (stars).

It suggests you access the whole GA data without entering any type of code.

With this plugin you can obtain thoroughly prepared reports about your website visitors:

  • Gender
  • The device which they use while they are on your site
  • The country from where they visit the site
  • How they find your website and which are the most visited pages by the users

This plugin is GDPR compliant. Besides, you may use “Forms addon” to increase submissions, conversion rank, etc.

By setting up a “Universal event” you may collect the needed data from other devices.

In addition, the plugin’s installation is easy and quick. It offers you WP popular themes.

So many other features are included within this powerful plugin. It offers you the Free Version. But in case you want to use more advanced features, you can activate the Pro Version.

So, here are the three Pro annual plans of Monster Insights:

  • Agency– $399.50 per year
  • Pro– $199.50 per year
  • Plus– $99.50 per year

4. ExactMetrix


The next plugin that we would like to present to you is ExactMetrics. It has over 1.000.000 active installations on its official website.

With this plugin, you will get the reports about your site analytics in your WP dashboard. The ExactMetrics WordPress plugin will inform you about your page visitors, traffic from social media, mobile analytics, searches, etc.

The good thing is that the plugin provides reports about each of the pages. It also optimizes the content.

You can easily follow events such as downloads, Email-addresses, etc.

The plugin offers you its Free version. But you can highly benefit from its Pro version in case you activate it. So ExactMetrics suggests these annual packages:

  • Agency– $399.50
  • Pro– $199.50
  • Plus– $99.50
  • In case you need more sites (maximum 500) you can activate the annual packages which cost $699.50.

5. 10WebAnalytics


Due to this plugin, you are able to manage the analytics directly in your WP admin area and receive the report in the WP dashboard. 10WebAnalytics has more than nine thousand active installations. And its rating scores 4.5/5 (stars). It is integrated with:

  • Google Ads
  • Google Adsense

10Web Google Analytics enables you to export the reports in a CSV format. So you can use it outside WordPress. It gives you an opportunity to send automatic E-mail reports, and use eCommerce. It suggests custom event tracking codes.

The plugin offers you Free and Pro versions. There are three plans available:

  • Basic– $85 for 6 months
  • Standard– 100$ for 6 months
  • Advanced– $150 for the year


To sum up, using Google Analytics in WordPress can be highly effective to conduct your business strategies. You can even change your business aims or get some important indicators that can help you the most.

So, considering the best features of Google Analytics you will probably come across the issue of its integration with WordPress. And here you will get many ways. But in this article, we discussed the two most convenient ways to connect Google Analytics to WordPress. One is “adding code manually”. And the other one is “via plugins”. We offered you a thorough guide on how to add the code manually and also recommended the 5 best plugins for Google Analytics integration. Now, you need to choose which one is convenient for you to connect this powerful web analytics service to your WP.

If you are interested in your website performance and analytics then hurry to read the “5 Best Data Analytics Tools in 2022” article in our blog.

If you like the article, do not hesitate to find us on Facebook and Twitter. For interesting WP tutorials, please subscribe to our YouTube channel.

Leave a Comment

Your email address will not be published.

Increase Your Traffic Now!

Want to get a book written by our SEO Specialist who shares his 30+ proven strategies with you?🔥
Enter your email address below and check your Inbox!📥

This will close in 0 seconds

Scroll to Top